PHP 5.3 really doesn't like Namespace:: :)
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 25 Dec 2008 13:40:37 +0000 (13:40 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 25 Dec 2008 13:40:37 +0000 (13:40 +0000)
includes/specials/SpecialSearch.php
maintenance/FiveUpgrade.inc

index 536aa0a..279f8b7 100644 (file)
@@ -804,7 +804,7 @@ class SpecialSearch {
                $rows = array();
                $tables = "";
                foreach( $namespaces as $ns => $name ) {
-                       $subj = Namespace::getSubject( $ns );
+                       $subj = MWNamespace::getSubject( $ns );
                        if( !array_key_exists( $subj, $rows ) ) {
                                $rows[$subj] = "";
                        }
@@ -1379,7 +1379,7 @@ class SpecialSearchOld {
                // many assumptions about namespace numbering
                $rows = array();
                foreach( $namespaces as $ns => $name ) {
-                       $subj = Namespace::getSubject( $ns );
+                       $subj = MWNamespace::getSubject( $ns );
                        if( !array_key_exists( $subj, $rows ) ) {
                                $rows[$subj] = "";
                        }
index 4fb3430..5632241 100644 (file)
@@ -888,17 +888,17 @@ END;
                $add = array();
                while( $row = $this->dbr->fetchObject( $result ) ) {
                        $add[] = array(
-                               'wl_user'      =>                        $row->wl_user,
-                               'wl_namespace' => Namespace::getSubject( $row->wl_namespace ),
-                               'wl_title'     =>           $this->conv( $row->wl_title ),
-                               'wl_notificationtimestamp' =>            '0' );
+                               'wl_user'      =>                          $row->wl_user,
+                               'wl_namespace' => MWNamespace::getSubject( $row->wl_namespace ),
+                               'wl_title'     =>             $this->conv( $row->wl_title ),
+                               'wl_notificationtimestamp' =>              '0' );
                        $this->addChunk( $add );
 
                        $add[] = array(
-                               'wl_user'      =>                        $row->wl_user,
-                               'wl_namespace' =>    Namespace::getTalk( $row->wl_namespace ),
-                               'wl_title'     =>           $this->conv( $row->wl_title ),
-                               'wl_notificationtimestamp' =>            '0' );
+                               'wl_user'      =>                          $row->wl_user,
+                               'wl_namespace' =>    MWNamespace::getTalk( $row->wl_namespace ),
+                               'wl_title'     =>             $this->conv( $row->wl_title ),
+                               'wl_notificationtimestamp' =>              '0' );
                        $this->addChunk( $add );
                }
                $this->lastChunk( $add );