mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
When you call with ajax in metaconsole, lost define metaconsole.
This commit is contained in:
parent
b797b900ce
commit
ea7e987bb6
@ -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 ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user