Index: trunk/extensions/CloseWikis/CloseWikis.page.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | } |
57 | 57 | |
58 | 58 | protected function closeForm() { |
59 | | - global $wgOut, $wgUser, $wgRequest, $wgTitle; |
| 59 | + global $wgOut, $wgUser, $wgRequest; |
60 | 60 | |
61 | 61 | $status = ''; |
62 | 62 | $statusOK = false; |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | if( $statusOK ) { |
73 | 73 | $status = wfMsgExt( 'closewikis-page-close-success', 'parseinline' ); |
74 | 74 | $logpage = new LogPage( 'closewiki' ); |
75 | | - $logpage->addEntry( 'close', $wgTitle /* dummy */, $lreason, array( $wiki ) ); |
| 75 | + $logpage->addEntry( 'close', $this->getTitle() /* dummy */, $lreason, array( $wiki ) ); |
76 | 76 | } else { |
77 | 77 | $status = wfMsgExt( 'closewikis-page-err-closed', 'parseinline' ); |
78 | 78 | } |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | $statusStyle = $statusOK ? 'success' : 'error'; |
95 | 95 | $wgOut->addHTML( "<p><strong class=\"{$statusStyle}\">{$status}</strong></p>" ); |
96 | 96 | } |
97 | | - $wgOut->addHTML( '<form method="post" action="' . htmlspecialchars( $wgTitle->getLocalURL() ) . '">' ); |
| 97 | + $wgOut->addHTML( '<form method="post" action="' . htmlspecialchars( $this->getTitle()->getLocalURL() ) . '">' ); |
98 | 98 | $form = array(); |
99 | 99 | $form['closewikis-page-close-wiki'] = $this->buildSelect( CloseWikis::getUnclosedList(), 'wpcWiki', $defaultWiki ); |
100 | 100 | $form['closewikis-page-close-dreason'] = Xml::textarea( 'wpcDisplayReason', $defaultDisplayReason ); |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | } |
106 | 106 | |
107 | 107 | protected function reopenForm() { |
108 | | - global $wgOut, $wgUser, $wgRequest, $wgTitle; |
| 108 | + global $wgOut, $wgUser, $wgRequest; |
109 | 109 | |
110 | 110 | $status = ''; |
111 | 111 | $statusOK = false; |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | if( $statusOK ) { |
121 | 121 | $status = wfMsgExt( 'closewikis-page-reopen-success', 'parseinline' ); |
122 | 122 | $logpage = new LogPage( 'closewiki' ); |
123 | | - $logpage->addEntry( 'reopen', $wgTitle /* dummy */, $lreason, array( $wiki ) ); |
| 123 | + $logpage->addEntry( 'reopen', $this->getTitle() /* dummy */, $lreason, array( $wiki ) ); |
124 | 124 | } else { |
125 | 125 | $status = wfMsgExt( 'closewikis-page-err-opened', 'parseinline' ); |
126 | 126 | } |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | $statusStyle = $statusOK ? 'success' : 'error'; |
139 | 139 | $wgOut->addHTML( "<p><strong class=\"{$statusStyle}\">{$status}</strong></p>" ); |
140 | 140 | } |
141 | | - $wgOut->addHTML( '<form method="post" action="' . htmlspecialchars( $wgTitle->getLocalURL() ) . '">' ); |
| 141 | + $wgOut->addHTML( '<form method="post" action="' . htmlspecialchars( $this->getTitle()->getLocalURL() ) . '">' ); |
142 | 142 | $form = array(); |
143 | 143 | $form['closewikis-page-reopen-wiki'] = $this->buildSelect( CloseWikis::getList(), 'wprWiki', $defaultWiki ); |
144 | 144 | $form['closewikis-page-reopen-reason'] = Xml::input( 'wprReason', false, $defaultReason ); |