Index: trunk/extensions/Polyglot/Polyglot.php |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | |
93 | 93 | if ( $ns < 0 |
94 | 94 | || in_array($ns, $wfPolyglotExcemptNamespaces) |
95 | | - || ($wfPolyglotExcemptTalkPages && Namespace::isTalk($ns)) ) { |
| 95 | + || ($wfPolyglotExcemptTalkPages && MWNamespace::isTalk($ns)) ) { |
96 | 96 | return true; |
97 | 97 | } |
98 | 98 | |
— | — | @@ -194,7 +194,7 @@ |
195 | 195 | // at least if wgPolyglotFollowRedirects is true |
196 | 196 | |
197 | 197 | if ( $ns >= 0 && !in_array($ns, $wfPolyglotExcemptNamespaces) |
198 | | - && (!$wfPolyglotExcemptTalkPages || !Namespace::isTalk($ns)) ) { |
| 198 | + && (!$wfPolyglotExcemptTalkPages || !MWNamespace::isTalk($ns)) ) { |
199 | 199 | $ll = wfPolyglotGetLanguages($parser->mTitle); |
200 | 200 | if ($ll) $links = array_merge($links, $ll); |
201 | 201 | |
Index: trunk/extensions/BackAndForth/BackAndForth.class.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | public static function viewHook( $article ) { |
19 | 19 | global $wgOut, $wgUser; |
20 | 20 | $title = $article->getTitle(); |
21 | | - if( Namespace::isContent( $title->getNamespace() ) ) { |
| 21 | + if( MWNamespace::isContent( $title->getNamespace() ) ) { |
22 | 22 | $wgOut->addHTML( self::buildLinks( $title ) ); |
23 | 23 | $wgOut->addHeadItem( 'backandforth', self::buildHeadItem() ); |
24 | 24 | } |
Index: trunk/extensions/RdfRedland/Modelers/DCmes.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | $this->Agent->getTimestampResource() ) ); |
78 | 78 | } |
79 | 79 | |
80 | | - if ( Namespace::isTalk( $this->Agent->getTitle()->getNamespace() ) ) { |
| 80 | + if ( MWNamespace::isTalk( $this->Agent->getTitle()->getNamespace() ) ) { |
81 | 81 | $model->addStatement( MwRdf::Statement( |
82 | 82 | $artres, |
83 | 83 | $dc->subject, |
Index: trunk/extensions/Cache404/extensions/Cache404.php |
— | — | @@ -372,7 +372,7 @@ |
373 | 373 | } |
374 | 374 | |
375 | 375 | function getTalkPartner($title) { |
376 | | - if (Namespace::isTalk($title->getNamespace())) { |
| 376 | + if ( MWNamespace::isTalk( $title->getNamespace() ) ) { |
377 | 377 | return $title->getSubjectPage(); |
378 | 378 | } else { |
379 | 379 | return $title->getTalkPage(); |
— | — | @@ -563,7 +563,7 @@ |
564 | 564 | $admins = ''; |
565 | 565 | $dbr =& wfGetDB( DB_SLAVE ); |
566 | 566 | $user_rights = $dbr->tableName( 'user_rights' ); |
567 | | - $userspace = Namespace::getUser(); |
| 567 | + $userspace = MWNamespace::getUser(); |
568 | 568 | $sql = "SELECT ur_user " . |
569 | 569 | "FROM {$user_rights} " . |
570 | 570 | "WHERE ur_rights LIKE '%sysop%' "; |
Index: trunk/extensions/AdvancedRandom/AdvancedRandom_body.php |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | ); |
83 | 83 | } |
84 | 84 | |
85 | | - $title =& Title::makeTitle( Namespace::getSubject( $namespace ), $res->page_title ); |
| 85 | + $title =& Title::makeTitle( MWNamespace::getSubject( $namespace ), $res->page_title ); |
86 | 86 | if ( is_null( $title ) || $title->getText() == '' ) |
87 | 87 | $title = Title::newMainPage();; |
88 | 88 | $this->redirect( $title ); |
Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -402,7 +402,7 @@ |
403 | 403 | $pagetable = $dbr->tableName( 'page' ); |
404 | 404 | |
405 | 405 | $page_namespace = preg_quote( wfMsgForContent( 'proofreadpage_namespace' ), '/' ); |
406 | | - $page_ns_index = Namespace::getCanonicalIndex( strtolower( $page_namespace ) ); |
| 406 | + $page_ns_index = MWNamespace::getCanonicalIndex( strtolower( $page_namespace ) ); |
407 | 407 | if( $page_ns_index == NULL ) { |
408 | 408 | $page_ns_index = NS_MAIN; |
409 | 409 | } |
Index: trunk/extensions/TalkHere/TalkHere.php |
— | — | @@ -74,9 +74,9 @@ |
75 | 75 | |
76 | 76 | $ns = $title->getNamespace(); |
77 | 77 | |
78 | | - if ( !Namespace::isTalk($ns) && Namespace::canTalk($ns) && $title->exists() |
| 78 | + if ( !MWNamespace::isTalk($ns) && MWNamespace::canTalk($ns) && $title->exists() |
79 | 79 | && ( !$wgTalkHereNamespaces || in_array($ns, $wgTalkHereNamespaces) ) ) { |
80 | | - $tns = Namespace::getTalk($ns); |
| 80 | + $tns = MWNamespace::getTalk($ns); |
81 | 81 | $talk = Title::makeTitle($tns, $title->getDBkey()); |
82 | 82 | |
83 | 83 | if ($talk && $talk->userCan('read')) { |
Index: trunk/extensions/News/NewsRenderer.php |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | if ( $ns === '-' || $ns === '0' || $ns === 'main' || $ns === 'article' ) { |
152 | 152 | $this->namespaces[$i] = 0; |
153 | 153 | } else { |
154 | | - $this->namespaces[$i] = Namespace::getCanonicalIndex( $ns ); |
| 154 | + $this->namespaces[$i] = MWNamespace::getCanonicalIndex( $ns ); |
155 | 155 | if ( $this->namespaces[$i] === false || $this->namespaces[$i] === NULL ) |
156 | 156 | $this->namespaces[$i] = $wgContLang->getNsIndex( $ns ); |
157 | 157 | } |
Index: trunk/extensions/MetavidWiki/includes/MV_ImageGallery.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | } |
110 | 110 | |
111 | 111 | // TODO |
112 | | - // $ul = $sk->makeLink( $wgContLang->getNsText( Namespace::getUser() ) . ":{$ut}", $ut ); |
| 112 | + // $ul = $sk->makeLink( $wgContLang->getNsText( MWNamespace::getUser() ) . ":{$ut}", $ut ); |
113 | 113 | |
114 | 114 | if ( $this->mShowBytes ) { |
115 | 115 | if ( $img ) { |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | $stream_name = MV_Stream::getStreamNameFromId( $mvd->stream_id ); |
161 | 161 | |
162 | 162 | $lTitle = Title::makeTitle( NS_SPECIAL, 'Userlogin' ); |
163 | | - $loginLink = $sk->makeLinkObj( $lTitle, wfMsg( 'login' ), 'returnto=' . Namespace::getCanonicalName( MV_NS_STREAM ) . ':' . $stream_name ); |
| 163 | + $loginLink = $sk->makeLinkObj( $lTitle, wfMsg( 'login' ), 'returnto=' . MWNamespace::getCanonicalName( MV_NS_STREAM ) . ':' . $stream_name ); |
164 | 164 | |
165 | 165 | $wgOut->addHTML( wfMsg( 'mv_user_cant_edit', $loginLink, $cancel ) ); |
166 | 166 | $wgOut->readOnlyPage( $this->mArticle->getContent(), true, $permErrors ); |
Index: trunk/extensions/MiniPreview/MiniPreview.php |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | if ( $last_type != $p->from_category ) $html .= "<div class='MiniPreviewSeparator'> </div>" ; # Visually separate categories from galleries |
135 | 135 | $last_type = $p->from_category; |
136 | 136 | $nsid = $p->from_category ? 14 : $wgMiniPreviewGalleryNamespace ; |
137 | | - $ns = Namespace::getCanonicalName ( $nsid ) . ':' ; |
| 137 | + $ns = MWNamespace::getCanonicalName ( $nsid ) . ':' ; |
138 | 138 | $t = Title::newFromDBkey( $ns . $p->source_title ); |
139 | 139 | $mode = ( $p->from_category ? "category" : "gallery" ) ; |
140 | 140 | |
Index: trunk/extensions/RDF/Rdf.php |
— | — | @@ -448,7 +448,7 @@ |
449 | 449 | $model->add(new Statement($artres, $DCMES['date'], |
450 | 450 | MwRdfTimestamp($article->getTimestamp()))); |
451 | 451 | |
452 | | - if (Namespace::isTalk($nt->getNamespace())) { |
| 452 | + if ( MWNamespace::isTalk( $nt->getNamespace() ) ) { |
453 | 453 | $model->add(new Statement($artres, $DCMES['subject'], |
454 | 454 | MwRdfTitleResource($nt->getSubjectPage()))); |
455 | 455 | } else { |