From 07e9a3005fbc85674fb4eab67c2b073916976bbb Mon Sep 17 00:00:00 2001 From: dongsheng Date: Mon, 14 Jul 2008 02:32:59 +0000 Subject: [PATCH] MDL-15565, add maintenance mode alert reminder in title and navbar. --- lang/en_utf8/admin.php | 1 + lib/weblib.php | 54 ++++++++++++++++++++++++------------------ 2 files changed, 32 insertions(+), 23 deletions(-) diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index 26e6447ac6..0486e4dcff 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -460,6 +460,7 @@ $string['mailnewline'] = 'Newline characters in mail'; $string['maintfileopenerror'] = 'Error opening maintenance files!'; $string['maintinprogress'] = 'Maintenance is in progress...'; $string['managelang'] = 'Manage'; +$string['maintenancemode'] = 'In Maintenance Mode'; $string['maxbytes'] = 'Maximum uploaded file size'; $string['maxeditingtime'] = 'Maximum time to edit posts'; $string['mbstringrecommended'] = 'Installing the optional MBSTRING library is highly recommended in order to improve site performance, particularly if your site is supporting non-Latin languages.'; diff --git a/lib/weblib.php b/lib/weblib.php index 6b11ea5436..52620b1a30 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1079,7 +1079,7 @@ $targetwindow='self', $selectlabel='', $optionsextra=NULL) { //IE and Opera fire the onchange when ever you move into a dropdwown list with the keyboard. //onfocus will call a function inside dropdown.js. It fixes this IE/Opera behavior. - //Note: There is a bug on Opera+Linux with the javascript code (first mouse selection is inactive), + //Note: There is a bug on Opera+Linux with the javascript code (first mouse selection is inactive), //so we do not fix the Opera behavior on Linux if (check_browser_version('MSIE') || (check_browser_version('Opera') && !check_browser_operating_system("Linux"))) { $output .= '
'.$selectlabel.$button.'