message MDL-25148 using method on $PAGE to allow or disallow popup notifications

This commit is contained in:
Andrew Davis
2010-11-11 06:11:43 +00:00
parent f11f7b41df
commit d38755249d
5 changed files with 9 additions and 10 deletions
+3 -3
View File
@@ -111,7 +111,7 @@ $CFG->xmlstrictheaders = false;
if (!core_tables_exist()) {
$PAGE->set_pagelayout('maintenance');
define('MESSAGE_WINDOW', true);
$PAGE->set_popup_notification_allowed(false);
// fake some settings
$CFG->docroot = 'http://docs.moodle.org';
@@ -194,7 +194,7 @@ if (empty($CFG->version)) {
if ($version > $CFG->version) { // upgrade
$PAGE->set_pagelayout('maintenance');
define('MESSAGE_WINDOW', true);
$PAGE->set_popup_notification_allowed(false);
$a->oldversion = "$CFG->release ($CFG->version)";
$a->newversion = "$release ($version)";
@@ -278,7 +278,7 @@ if (moodle_needs_upgrading()) {
// means core upgrade or installation was not already done
if (!$confirmplugins) {
$PAGE->set_pagelayout('maintenance');
define('MESSAGE_WINDOW', true);
$PAGE->set_popup_notification_allowed(false);
$strplugincheck = get_string('plugincheck');
$PAGE->navbar->add($strplugincheck);
$PAGE->set_title($strplugincheck);