Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | * @param mixed $par Parameter passed to the page |
29 | 29 | */ |
30 | 30 | public function execute( $par ) { |
31 | | - global $wgOut, $wgUser, $wgTitle, $wgRequest, $wgContLang, $wgLang; |
| 31 | + global $wgOut, $wgUser, $wgRequest, $wgContLang, $wgLang; |
32 | 32 | global $wgVersion, $wgMaxNameChars, $wgCapitalLinks; |
33 | 33 | |
34 | 34 | $this->setHeaders(); |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | |
68 | 68 | $wgOut->addHTML( " |
69 | 69 | <!-- Current contributions limit is " . RENAMEUSER_CONTRIBLIMIT . " -->" . |
70 | | - Xml::openElement( 'form', array( 'method' => 'post', 'action' => $wgTitle->getLocalUrl(), 'id' => 'renameuser' ) ) . |
| 70 | + Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getTitle()->getLocalUrl(), 'id' => 'renameuser' ) ) . |
71 | 71 | Xml::openElement( 'fieldset' ) . |
72 | 72 | Xml::element( 'legend', null, wfMsg( 'renameuser' ) ) . |
73 | 73 | Xml::openElement( 'table', array( 'id' => 'mw-renameuser-table' ) ) . |
Index: trunk/extensions/LiquidThreads/pages/SpecialDeleteThread.php |
— | — | @@ -100,11 +100,11 @@ |
101 | 101 | } |
102 | 102 | |
103 | 103 | function execute( $par ) { |
104 | | - global $wgOut, $wgRequest, $wgTitle, $wgUser; |
| 104 | + global $wgOut, $wgRequest, $wgUser; |
105 | 105 | $this->user = $wgUser; |
106 | 106 | $this->output = $wgOut; |
107 | 107 | $this->request = $wgRequest; |
108 | | - $this->title = $wgTitle; |
| 108 | + $this->title = $this->getTitle(); |
109 | 109 | |
110 | 110 | $this->setHeaders(); |
111 | 111 | |
Index: trunk/extensions/LiquidThreads/pages/SpecialMoveThread.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | |
22 | 22 | function handleGet() { |
23 | 23 | wfLoadExtensionMessages( 'LiquidThreads' ); |
24 | | - $form_action = $this->title->getLocalURL() . '/' . $this->thread->title()->getPrefixedURL(); |
| 24 | + $form_action = $this->getTitle()->getLocalURL() . '/' . $this->thread->title()->getPrefixedURL(); |
25 | 25 | $thread_name = $this->thread->title()->getPrefixedText(); |
26 | 26 | $article_name = $this->thread->article()->getTitle()->getTalkPage()->getPrefixedText(); |
27 | 27 | $edit_url = LqtView::permalinkUrl( $this->thread, 'edit', $this->thread ); |
— | — | @@ -101,11 +101,10 @@ |
102 | 102 | } |
103 | 103 | |
104 | 104 | function execute( $par ) { |
105 | | - global $wgOut, $wgRequest, $wgTitle, $wgUser; |
| 105 | + global $wgOut, $wgRequest, $wgUser; |
106 | 106 | $this->user = $wgUser; |
107 | 107 | $this->output = $wgOut; |
108 | 108 | $this->request = $wgRequest; |
109 | | - $this->title = $wgTitle; |
110 | 109 | |
111 | 110 | $this->setHeaders(); |
112 | 111 | |
Index: trunk/extensions/LiquidThreads/pages/SpecialNewMessages.php |
— | — | @@ -19,17 +19,16 @@ |
20 | 20 | } |
21 | 21 | |
22 | 22 | function execute( $par ) { |
23 | | - global $wgOut, $wgRequest, $wgTitle, $wgUser; |
| 23 | + global $wgOut, $wgRequest, $wgUser; |
24 | 24 | wfLoadExtensionMessages( 'LiquidThreads' ); |
25 | 25 | $this->user = $wgUser; |
26 | 26 | $this->output = $wgOut; |
27 | 27 | $this->request = $wgRequest; |
28 | | - $this->title = $wgTitle; |
29 | 28 | |
30 | 29 | $this->setHeaders(); |
31 | 30 | |
32 | | - $view = new NewUserMessagesView( $this->output, new Article( $this->title ), |
33 | | - $this->title, $this->user, $this->request ); |
| 31 | + $view = new NewUserMessagesView( $this->output, new Article( $this->getTitle() ), |
| 32 | + $this->getTitle(), $this->user, $this->request ); |
34 | 33 | |
35 | 34 | $view->showOnce(); // handles POST etc. |
36 | 35 | |
Index: trunk/extensions/RandomInCategory/SpecialRandomincategory.body.php |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | } |
107 | 107 | |
108 | 108 | public static function getForm( $par = null ) { |
109 | | - global $wgScript, $wgTitle, $wgRequest; |
| 109 | + global $wgScript, $wgRequest; |
110 | 110 | |
111 | 111 | if( !( $category = $par ) ) { |
112 | 112 | $category = $wgRequest->getVal( 'category' ); |
— | — | @@ -115,7 +115,7 @@ |
116 | 116 | Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . |
117 | 117 | Xml::openElement( 'fieldset' ) . |
118 | 118 | Xml::element( 'legend', array(), wfMsg( 'randomincategory' ) ) . |
119 | | - Xml::hidden( 'title', $wgTitle->getPrefixedText() ) . |
| 119 | + Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
120 | 120 | Xml::openElement( 'p' ) . |
121 | 121 | Xml::label( wfMsg( 'randomincategory-label' ), 'category' ) . ' ' . |
122 | 122 | Xml::input( 'category', null, $category, array( 'id' => 'category' ) ) . ' ' . |
Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php |
— | — | @@ -90,14 +90,15 @@ |
91 | 91 | * Render security info if any restrictions on this title |
92 | 92 | */ |
93 | 93 | public function onOutputPageBeforeHTML( &$out, &$text ) { |
94 | | - global $wgTitle, $wgUser; |
| 94 | + global $wgUser; |
95 | 95 | |
| 96 | + $title = $out->getTitle(); |
96 | 97 | # Render security info if any |
97 | | - if ( is_object( $wgTitle ) && $wgTitle->exists() && count( $this->info['LS'] ) + count( $this->info['PR'] ) ) { |
| 98 | + if ( is_object( $title ) && $title->exists() && count( $this->info['LS'] ) + count( $this->info['PR'] ) ) { |
98 | 99 | |
99 | 100 | $rights = $wgUser->getRights(); |
100 | | - $wgTitle->getRestrictions( false ); |
101 | | - $reqgroups = $wgTitle->mRestrictions; |
| 101 | + $title->getRestrictions( false ); |
| 102 | + $reqgroups = $title->mRestrictions; |
102 | 103 | $sysop = in_array( 'sysop', $wgUser->getGroups() ); |
103 | 104 | |
104 | 105 | # Build restrictions text |
Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | } |
26 | 26 | |
27 | 27 | protected function showList( $wgRequest ) { |
28 | | - global $wgOut, $wgScript, $wgTitle, $wgFlaggedRevsNamespaces; |
| 28 | + global $wgOut, $wgScript, $wgFlaggedRevsNamespaces; |
29 | 29 | # If no NS given, then just use the first of $wgFlaggedRevsNamespaces |
30 | 30 | $defaultNS = empty($wgFlaggedRevsNamespaces) ? 0 : $wgFlaggedRevsNamespaces[0]; |
31 | 31 | $namespace = $wgRequest->getIntOrNull( 'namespace', $defaultNS ); |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | $action = htmlspecialchars( $wgScript ); |
45 | 45 | $wgOut->addHTML( "<form action=\"$action\" method=\"get\">\n" . |
46 | 46 | '<fieldset><legend>' . wfMsg('unreviewed-legend') . '</legend>' . |
47 | | - Xml::hidden( 'title', $wgTitle->getPrefixedDBKey() ) . '<p>' ); |
| 47 | + Xml::hidden( 'title', $this->getTitle()->getPrefixedDBKey() ) . '<p>' ); |
48 | 48 | # Add dropdowns as needed |
49 | 49 | if( count($wgFlaggedRevsNamespaces) > 1 ) { |
50 | 50 | $wgOut->addHTML( FlaggedRevsXML::getNamespaceMenu( $namespace ) . ' ' ); |
Index: trunk/extensions/FlaggedRevs/specialpages/UnstablePages_body.php |
— | — | @@ -25,14 +25,14 @@ |
26 | 26 | } |
27 | 27 | |
28 | 28 | protected function showForm() { |
29 | | - global $wgOut, $wgTitle, $wgScript, $wgFlaggedRevsNamespaces; |
| 29 | + global $wgOut, $wgScript, $wgFlaggedRevsNamespaces; |
30 | 30 | $wgOut->addHTML( wfMsgExt('unstablepages-text', array('parseinline') ) ); |
31 | 31 | if( count($wgFlaggedRevsNamespaces) > 1 ) { |
32 | 32 | $form = Xml::openElement( 'form', array( 'name' => 'unstablepages', 'action' => $wgScript, 'method' => 'get' ) ); |
33 | 33 | $form .= "<fieldset><legend>".wfMsg('unstablepages')."</legend>\n"; |
34 | 34 | $form .= FlaggedRevsXML::getNamespaceMenu( $this->namespace ) . ' '; |
35 | 35 | $form .= " ".Xml::submitButton( wfMsg( 'go' ) ); |
36 | | - $form .= Xml::hidden( 'title', $wgTitle->getPrefixedDBKey() ); |
| 36 | + $form .= Xml::hidden( 'title', $this->getTitle()->getPrefixedDBKey() ); |
37 | 37 | $form .= "</fieldset></form>\n"; |
38 | 38 | $wgOut->addHTML( $form ); |
39 | 39 | } |
Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | } |
28 | 28 | |
29 | 29 | protected function showForm() { |
30 | | - global $wgOut, $wgTitle, $wgScript, $wgFlaggedRevsNamespaces; |
| 30 | + global $wgOut, $wgScript, $wgFlaggedRevsNamespaces; |
31 | 31 | $wgOut->addHTML( wfMsgExt('stablepages-text', array('parseinline') ) ); |
32 | 32 | if( count($wgFlaggedRevsNamespaces) > 1 ) { |
33 | 33 | $form = Xml::openElement( 'form', array( 'name' => 'stablepages', 'action' => $wgScript, 'method' => 'get' ) ); |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | $form .= Xml::label( wfMsg('stablepages-precedence'), 'wpPrecedence' ) . ' '; |
37 | 37 | $form .= FlaggedRevsXML::getPrecedenceMenu( $this->precedence ) . ' '; |
38 | 38 | $form .= " ".Xml::submitButton( wfMsg( 'go' ) ); |
39 | | - $form .= Xml::hidden( 'title', $wgTitle->getPrefixedDBKey() ); |
| 39 | + $form .= Xml::hidden( 'title', $this->getTitle()->getPrefixedDBKey() ); |
40 | 40 | $form .= "</fieldset></form>\n"; |
41 | 41 | $wgOut->addHTML( $form ); |
42 | 42 | } |
Index: trunk/extensions/Editcount/SpecialEditcount_body.php |
— | — | @@ -163,11 +163,11 @@ |
164 | 164 | $this->nscount = $nscount; |
165 | 165 | $this->total = $total; |
166 | 166 | |
167 | | - global $wgTitle, $wgOut, $wgLang; |
| 167 | + global $wgOut, $wgLang; |
168 | 168 | |
169 | 169 | $this->setHeaders(); |
170 | 170 | |
171 | | - $action = $wgTitle->escapeLocalUrl(); |
| 171 | + $action = $this->getTitle()->escapeLocalUrl(); |
172 | 172 | $user = wfMsgHtml( 'editcount_username' ); |
173 | 173 | $submit = wfMsgHtml( 'editcount_submit' ); |
174 | 174 | $out = " |
Index: trunk/extensions/Translate/TranslatePage.php |
— | — | @@ -319,9 +319,9 @@ |
320 | 320 | |
321 | 321 | private function makeOffsetLink( $label, $offset ) { |
322 | 322 | wfMemIn( __METHOD__ ); |
323 | | - global $wgTitle, $wgUser; |
| 323 | + global $wgUser; |
324 | 324 | $skin = $wgUser->getSkin(); |
325 | | - $link = $skin->makeLinkObj( $wgTitle, $label, |
| 325 | + $link = $skin->makeLinkObj( $this->getTitle(), $label, |
326 | 326 | wfArrayToCGI( |
327 | 327 | array( 'offset' => $offset ), |
328 | 328 | $this->nondefaults |
Index: trunk/extensions/Wikidata/SpecialLanguages.php |
— | — | @@ -73,8 +73,8 @@ |
74 | 74 | # $wgRequest->getText( 'page' ); |
75 | 75 | } |
76 | 76 | function showForm() { |
77 | | - global $wgTitle, $wgOut; |
78 | | - $action = $wgTitle->escapeLocalURL( 'action=submit' ); |
| 77 | + global $wgOut; |
| 78 | + $action = $this->getTitle()->escapeLocalURL( 'action=submit' ); |
79 | 79 | $wgOut->addHTML( |
80 | 80 | <<<END |
81 | 81 | <form name="addlanguage" method="post" action="$action"> |
Index: trunk/extensions/EmergencyDeSysop/SpecialEmergencyDeSysop.php |
— | — | @@ -112,9 +112,9 @@ |
113 | 113 | * This function shows the request form |
114 | 114 | */ |
115 | 115 | function showForm() { |
116 | | - global $wgRequest, $wgOut, $wgUser, $wgTitle; |
| 116 | + global $wgRequest, $wgOut, $wgUser; |
117 | 117 | |
118 | | - $action = $wgTitle->escapeLocalUrl(); |
| 118 | + $action = $this->getTitle()->escapeLocalUrl(); |
119 | 119 | $f = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $action, 'name' => 'request' ) ); |
120 | 120 | |
121 | 121 | |
Index: trunk/extensions/TemplateLink/TemplateLink.body.php |
— | — | @@ -48,11 +48,11 @@ |
49 | 49 | } |
50 | 50 | |
51 | 51 | function sandboxParse($wikiText){ |
52 | | - global $wgTitle, $wgUser; |
| 52 | + global $wgUser; |
53 | 53 | $myParser = new Parser(); |
54 | 54 | $myParserOptions = new ParserOptions(); |
55 | 55 | $myParserOptions->initialiseFromUser($wgUser); |
56 | | - $result = $myParser->parse($wikiText, $wgTitle, $myParserOptions); |
| 56 | + $result = $myParser->parse($wikiText, $this->getTitle(), $myParserOptions); |
57 | 57 | return $result->getText(); |
58 | 58 | } |
59 | 59 | } |
Index: trunk/extensions/UserMerge/UserMerge_body.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | } |
20 | 20 | |
21 | 21 | function execute( $par ) { |
22 | | - global $wgRequest, $wgOut, $wgUser, $wgTitle; |
| 22 | + global $wgRequest, $wgOut, $wgUser; |
23 | 23 | |
24 | 24 | wfLoadExtensionMessages( 'UserMerge' ); |
25 | 25 | |
— | — | @@ -111,7 +111,7 @@ |
112 | 112 | } |
113 | 113 | |
114 | 114 | $wgOut->addHTML( |
115 | | - Xml::openElement( 'form', array( 'method' => 'post', 'action' => $wgTitle->getLocalUrl(), 'id' => 'usermergeform' ) ) . |
| 115 | + Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getTitle()->getLocalUrl(), 'id' => 'usermergeform' ) ) . |
116 | 116 | Xml::fieldset( wfMsg( 'usermerge-fieldset' ) ) . |
117 | 117 | Xml::openElement( 'table', array( 'id' => 'mw-usermerge-table' ) ) . |
118 | 118 | "<tr> |
Index: trunk/extensions/ConfirmAccount/UserCredentials_body.php |
— | — | @@ -43,13 +43,13 @@ |
44 | 44 | } |
45 | 45 | |
46 | 46 | function showForm() { |
47 | | - global $wgOut, $wgTitle, $wgScript; |
| 47 | + global $wgOut, $wgScript; |
48 | 48 | |
49 | 49 | $username = str_replace( '_', ' ', $this->target ); |
50 | 50 | $form = Xml::openElement( 'form', array( 'name' => 'stablization', 'action' => $wgScript, 'method' => 'get' ) ); |
51 | 51 | $form .= "<fieldset><legend>".wfMsg('usercredentials-leg')."</legend>"; |
52 | 52 | $form .= "<table><tr>"; |
53 | | - $form .= "<td>".Xml::hidden( 'title', $wgTitle->getPrefixedText() )."</td>"; |
| 53 | + $form .= "<td>".Xml::hidden( 'title', $this->getTitle()->getPrefixedText() )."</td>"; |
54 | 54 | $form .= "<td>".wfMsgHtml("usercredentials-user")."</td>"; |
55 | 55 | $form .= "<td>".Xml::input('target', 35, $username, array( 'id' => 'wpUsername' ) )."</td>"; |
56 | 56 | $form .= "<td>".Xml::submitButton( wfMsg( 'go' ) )."</td>"; |
Index: trunk/extensions/UnicodeConverter/UnicodeConverter_body.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | } |
13 | 13 | |
14 | 14 | function execute( $par ) { |
15 | | - global $wgRequest, $wgOut, $wgTitle; |
| 15 | + global $wgRequest, $wgOut; |
16 | 16 | |
17 | 17 | wfLoadExtensionMessages( 'UnicodeConverter' ); |
18 | 18 | |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | |
21 | 21 | $q = $wgRequest->getText( 'q' ); |
22 | 22 | $encQ = htmlspecialchars( $q ); |
23 | | - $action = $wgTitle->escapeLocalUrl(); |
| 23 | + $action = $this->getTitle()->escapeLocalUrl(); |
24 | 24 | $ok = htmlspecialchars( wfMsg( 'unicodeconverter-ok' ) ); |
25 | 25 | |
26 | 26 | $wgOut->addHTML( <<<END |