When you call with ajax in metaconsole, lost define metaconsole.

This commit is contained in:
m-lopez-f 2015-03-02 15:15:10 +01:00
parent b797b900ce
commit ea7e987bb6
1 changed files with 2 additions and 2 deletions

View File

@ -75,9 +75,9 @@ if (file_exists ('./include/languages/'.$user_language.'.mo')) {
$l10n->load_tables();
}
if (isset($_SERVER['HTTP_REFERER'])) {
if (isset($config['metaconsole'])) {
// Not cool way of know if we are executing from metaconsole or normal console
if (strpos($_SERVER['HTTP_REFERER'], ENTERPRISE_DIR . '/meta/') !== false)
if ($config['metaconsole'])
define ('METACONSOLE', true);
}
session_write_close ();