http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88179
Revision: 88179
Author: robla
Date: 2011-05-15 13:56:12 +0000 (Sun, 15 May 2011)
Log Message:
-----------
Changing !isset to is_null (thanks Roan!) and fixing some coding style stuff
Followup to r88178
Modified Paths:
--------------
trunk/phase3/includes/Setup.php
Modified: trunk/phase3/includes/Setup.php
===================================================================
--- trunk/phase3/includes/Setup.php 2011-05-15 13:42:10 UTC (rev 88178)
+++ trunk/phase3/includes/Setup.php 2011-05-15 13:56:12 UTC (rev 88179)
@@ -345,12 +345,14 @@
* that happens whenever you use a date function without the timezone being
* explicitly set. Inspired by phpMyAdmin's treatment of the problem.
*/
-wfSuppressWarnings();
-if(!isset($wgLocaltimezone)) $wgLocaltimezone = date_default_timezone_get();
-wfRestoreWarnings();
+if ( is_null( $wgLocaltimezone) ) {
+ wfSuppressWarnings();
+ $wgLocaltimezone = date_default_timezone_get();
+ wfRestoreWarnings();
+}
date_default_timezone_set( $wgLocaltimezone );
-if(!isset($wgLocalTZoffset)) {
+if( is_null( $wgLocalTZoffset ) ) {
$wgLocalTZoffset = date('Z') / 60;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs