aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/AMenuManager/main.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AMenuManager/main.inc.php')
-rwxr-xr-xplugins/AMenuManager/main.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AMenuManager/main.inc.php b/plugins/AMenuManager/main.inc.php
index 766b478e8..79cbf674a 100755
--- a/plugins/AMenuManager/main.inc.php
+++ b/plugins/AMenuManager/main.inc.php
@@ -43,9 +43,9 @@ define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
define('AMM_VERSION' , '1.0.0'); // => ne pas oublier la version dans l'entĂȘte !!
-global $prefixeTable, $menu;
+global $prefixeTable;
-if(basename($_SERVER["PHP_SELF"])=='admin.php')
+if(defined('IN_ADMIN'))
{
//AMM admin part loaded and active only if in admin page
include_once("amm_aim.class.inc.php");