Permalink
Browse files

Check for a define FULLME instead of global $FULLME SC29

  • Loading branch information...
1 parent 80ebbb7 commit 4893ee397c324c8551e232544cbddb9b3ff0072d moodler committed Dec 12, 2004
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/setup.php
View
@@ -211,8 +211,9 @@ class object {};
$USER = &$_SESSION['USER'];
}
- if (isset($FULLME)) {
- $ME = $FULLME;
+ if (defined('FULLME')) { // Usually in command-line scripts like admin/cron.php
+ $FULLME = FULLME;
+ $ME = FULLME;
} else {
$FULLME = qualified_me();
$ME = strip_querystring($FULLME);

0 comments on commit 4893ee3

Please sign in to comment.