Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog Products PDF Reports


herot

Recommended Posts

im trying to install for admin...

 

i can follow the directions to step 5, but im not sure where to put the code in step 5. Does it matter where in general.php i put the code???:

5 - copy the following function from admin/include/functions/languages.php inside admin/include/functions/general.php

 

function tep_get_languages_directory($code) {

global $languages_id;

$language_query = tep_db_query("select languages_id, directory from " . TABLE_LANGUAGES . " where code = '" . tep_db_input($code) . "'");

if (tep_db_num_rows($language_query)) {

$language = tep_db_fetch_array($language_query);

$languages_id = $language['languages_id'];

return $language['directory'];

} else {

return false;

}

}

 

N.B.: You can remove the admin/include/functions/languages.php as it shouldn't be used anymore

Did you get rid of the voices in your head? Do you now miss them and the things that they said?

-David Gilmour

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...