Hello,
The described solution works, but I found out, it causes the following PHP Warning (in case the sctipt is being executed by cron, not from Admin):
Here is the appropriate part of init_languages.php (strings 34...39):
Code:
// include the language translations
require(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');
$current_page = basename($PHP_SELF);
if (file_exists(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page)) {
include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page);
}
I have found out, the $SERVER['PHP_SELF'] is an empty string (in case the script is being executed by cron!), thus $current_page is also empty.
How such issue can be fixed?
Thank you in advance and best regards,
AR