Changeset 539

Show
Ignore:
Timestamp:
09/12/06 13:52:28 (2 years ago)
Author:
ben
Message:

Context isn't assumed to be declared in includes.php.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/includes.php

    r519 r539  
    9898    // and walled garden functionality is turned on, redirect to 
    9999    // the logon screen 
    100         if (!empty($CFG->walledgarden) && context != "external" && !logged_on) { 
     100        if (!empty($CFG->walledgarden) && (context != "external" || !defined("context")) && !logged_on) { 
    101101            header("Location: " . $CFG->wwwroot . "login/index.php"); 
    102102            exit();