http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72995

Revision: 72995
Author:   kaldari
Date:     2010-09-14 17:25:22 +0000 (Tue, 14 Sep 2010)

Log Message:
-----------
fixing remaining issues from r72619, changing to lowercase var

Modified Paths:
--------------
    trunk/extensions/CentralNotice/SpecialBannerListLoader.php

Modified: trunk/extensions/CentralNotice/SpecialBannerListLoader.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialBannerListLoader.php  2010-09-14 
17:09:52 UTC (rev 72994)
+++ trunk/extensions/CentralNotice/SpecialBannerListLoader.php  2010-09-14 
17:25:22 UTC (rev 72995)
@@ -70,7 +70,7 @@
                                // Pull out values
                                foreach ( $notices as $notice => $val ) {
                                        // Either match against ALL project or 
a specific project
-                                       if ( $val['project'] == '' || 
$val['project'] == $this->project ) {
+                                       if ( $val['project'] === '' || 
$val['project'] == $this->project ) {
                                                $templates = 
$this->centralNoticeDB->selectTemplatesAssigned( $notice );
                                                break;
                                        }
@@ -93,7 +93,7 @@
                        $templates = CentralNotice::selectNoticeTemplates( 
$this->project, $this->language, $this->location );
                }
                
-               return 'Banners = ' . json_encode( $templates );
+               return 'banners = ' . FormatJson::encode( $templates );
        }
        
 }



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to