MDL-23695 fixed yet another PAGE->context issue
authorPetr Skoda <skodak@moodle.org>
Mon, 9 Aug 2010 08:21:45 +0000 (08:21 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 9 Aug 2010 08:21:45 +0000 (08:21 +0000)
iplookup/index.php

index 0f0b34e..1c5848f 100644 (file)
@@ -40,6 +40,7 @@ if (isset($CFG->iplookup)) {
 
 $PAGE->set_url('/iplookup/index.php', array('id'=>$ip, 'user'=>$user));
 $PAGE->set_pagelayout('popup');
+$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
 
 $info = array($ip);
 $note = array();