Index: trunk/extensions/ConfigureWMF/ConfigureWMF.page.php |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | } |
58 | 58 | |
59 | 59 | function showSiteSelectForm( $invalid = false ) { |
60 | | - global $wgOut, $wgScript, $wgTitle; |
| 60 | + global $wgOut, $wgScript; |
61 | 61 | $legend = wfMsgHtml( 'configurewmf-selectsite' ); |
62 | 62 | $wgOut->addHTML( "<fieldset><legend>{$legend}</legend>" ); |
63 | 63 | if( $invalid ) { |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | $wgOut->addHTML( '<strong id="cfgwmf-attention" style="color: red; font-size: 12pt">' . wfMsgHTML( 'configurewmf-attentionnotice' ) . '</strong>' ); |
67 | 67 | $wgOut->addWikiMsg( 'configurewmf-selectsite-help' ); |
68 | 68 | $wgOut->addHTML( "<form action='{$wgScript}' method='get'>" ); |
69 | | - $wgOut->addHTML( '<p>' . Xml::hidden( 'title', $wgTitle->getFullText() ) . '</p><table><tr>' ); |
| 69 | + $wgOut->addHTML( '<p>' . Xml::hidden( 'title', $this->getTitle()->getFullText() ) . '</p><table><tr>' ); |
70 | 70 | $wgOut->addHTML( '<td class="mw-label">' . Xml::label( wfMsg( 'configurewmf-site' ), 'cfg-site' ) . '</td>' ); |
71 | 71 | $wgOut->addHTML( '<td class="mw-input">' . Xml::input( 'wiki', false, false, array( 'id' => 'cfg-site' ) ) . '</td>' ); |
72 | 72 | $wgOut->addHTML( '</tr><tr><td></td><td class="mw-input">' . Xml::submitButton( wfMsg( 'configurewmf-select' ) ) . '</td>' ); |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | } |
75 | 75 | |
76 | 76 | function showSettingsChoiceForm( $wiki, $success = false ) { |
77 | | - global $wgOut, $wgTitle; |
| 77 | + global $wgOut; |
78 | 78 | $this->addNav( 1, $wiki ); |
79 | 79 | $legend = wfMsgHtml( 'configurewmf-chooseconfig' ); |
80 | 80 | $wgOut->addHTML( "<fieldset><legend>{$legend}</legend>" ); |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | $wgOut->addHTML( '<ul>' ); |
86 | 86 | foreach( ConfigureWMF::$settings as $name => $value ) { |
87 | 87 | $descr = wfMsgHtml( "configurewmf-cfgname-{$name}" ); |
88 | | - $url = htmlspecialchars( $wgTitle->getLocalURL( "wiki={$wiki}&config={$name}" ) ); |
| 88 | + $url = htmlspecialchars( $this->getTitle()->getLocalURL( "wiki={$wiki}&config={$name}" ) ); |
89 | 89 | $wgOut->addHTML( "<li><a href='{$url}'>{$descr}</a></li>" ); |
90 | 90 | } |
91 | 91 | $wgOut->addHTML( '</ul></fieldset>' ); |
— | — | @@ -122,7 +122,7 @@ |
123 | 123 | } |
124 | 124 | |
125 | 125 | function showChangeSettingsForm( $wiki, $config ) { |
126 | | - global $wgOut, $wgTitle, $wgScript, $wgUser, $wgRequest; |
| 126 | + global $wgOut, $wgScript, $wgUser, $wgRequest; |
127 | 127 | $legend = wfMsgHtml( 'configurewmf-change' ); |
128 | 128 | $submit = wfMsg( 'configurewmf-submit' ); |
129 | 129 | $reason = wfMsg( 'configurewmf-reason' ); |
— | — | @@ -144,7 +144,7 @@ |
145 | 145 | $wgOut->addHTML( wfMsgWikiHtml( 'configurewmf-seealso', $vars ) ); |
146 | 146 | $wgOut->addHTML( "<hr/>" ); |
147 | 147 | $wgOut->addHTML( "<form action='{$wgScript}' method='post'><p>" ); |
148 | | - $wgOut->addHTML( Xml::hidden( 'title', $wgTitle->getFullText() ) ); |
| 148 | + $wgOut->addHTML( Xml::hidden( 'title', $this->getTitle()->getFullText() ) ); |
149 | 149 | $wgOut->addHTML( Xml::hidden( 'wiki', $wiki ) ); |
150 | 150 | $wgOut->addHTML( Xml::hidden( 'config', $config ) ); |
151 | 151 | $wgOut->addHTML( Xml::hidden( 'edittoken', $wgUser->editToken() ) ); |
— | — | @@ -313,7 +313,7 @@ |
314 | 314 | } |
315 | 315 | |
316 | 316 | function addNav( $levels = 0, $wiki = '', $config = '', $group = '' ) { |
317 | | - global $wgUser, $wgTitle, $wgOut; |
| 317 | + global $wgUser, $wgOut; |
318 | 318 | $skin = $wgUser->getSkin(); |
319 | 319 | $bits = array(); |
320 | 320 | $bits[] = array( '', wfMsg( 'configurewmf-nav-rootpage' ) ); |
— | — | @@ -331,7 +331,7 @@ |
332 | 332 | if( $i == count( $bits ) - 1 ) |
333 | 333 | $bits[$i] = $bits[$i][1]; |
334 | 334 | else |
335 | | - $bits[$i] = $skin->makeLinkObj( $wgTitle, $bits[$i][1], $bits[$i][0] ); |
| 335 | + $bits[$i] = $skin->makeLinkObj( $this->getTitle(), $bits[$i][1], $bits[$i][0] ); |
336 | 336 | $wgOut->setSubtitle( '<div id="contentSub"><span class="subpages">< ' . |
337 | 337 | implode( ' | ', $bits ) . '</span></div>' ); |
338 | 338 | } |