fixed wrong include_once() - tabs.php is not a library file
authorPetr Skoda <skodak@moodle.org>
Sat, 27 Feb 2010 11:59:23 +0000 (11:59 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 27 Feb 2010 11:59:23 +0000 (11:59 +0000)
admin/roles/assign.php

index c161c25..bacb515 100755 (executable)
 
         $showroles = 1;
         $currenttab = 'assign';
-        include_once($CFG->dirroot.'/user/tabs.php');
+        include($CFG->dirroot.'/user/tabs.php');
 
     } else if ($context->contextlevel == CONTEXT_SYSTEM) {
         admin_externalpage_setup('assignroles', '', array('contextid' => $contextid, 'roleid' => $roleid));
         admin_externalpage_setup('frontpageroles', '', array('contextid' => $contextid, 'roleid' => $roleid));
         admin_externalpage_print_header();
         $currenttab = 'assign';
-        include_once('tabs.php');
+        include('tabs.php');
 
     } else {
         $currenttab = 'assign';
-        include_once('tabs.php');
+        include('tabs.php');
     }
 
     /// Print heading.