From: Alexandre Emsenhuber Date: Thu, 25 Dec 2008 13:40:37 +0000 (+0000) Subject: PHP 5.3 really doesn't like Namespace:: :) X-Git-Tag: 1.31.0-rc.0~43782 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=2c4da785a488b100e3e27236289c2eb0edba89fd;p=lhc%2Fweb%2Fwiklou.git PHP 5.3 really doesn't like Namespace:: :) --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 536aa0a7ac..279f8b7d85 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -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] = ""; } diff --git a/maintenance/FiveUpgrade.inc b/maintenance/FiveUpgrade.inc index 4fb34308a4..5632241a99 100644 --- a/maintenance/FiveUpgrade.inc +++ b/maintenance/FiveUpgrade.inc @@ -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 );