Index: trunk/extensions/LiquidThreads/compat/HTMLForm.php |
— | — | @@ -89,8 +89,6 @@ |
90 | 90 | } |
91 | 91 | |
92 | 92 | function show() { |
93 | | - $html = ''; |
94 | | - |
95 | 93 | self::addJS(); |
96 | 94 | |
97 | 95 | // Load data from the request. |
Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -249,9 +249,6 @@ |
250 | 250 | static function talkpageUrl( $title, $method = null, $operand = null, |
251 | 251 | $includeFragment = true, $perpetuateOffset = true ) |
252 | 252 | { |
253 | | - global $wgUser; |
254 | | - $sk = $wgUser->getSkin(); |
255 | | - |
256 | 253 | list( $title, $query ) = |
257 | 254 | self::talkpageLinkData( $title, $method, $operand, $includeFragment, |
258 | 255 | $perpetuateOffset ); |
— | — | @@ -1286,9 +1283,6 @@ |
1287 | 1284 | } |
1288 | 1285 | |
1289 | 1286 | function showThreadToolbar( $thread ) { |
1290 | | - global $wgLang; |
1291 | | - |
1292 | | - $sk = $this->user->getSkin(); |
1293 | 1287 | $html = ''; |
1294 | 1288 | |
1295 | 1289 | $headerParts = array(); |
— | — | @@ -1445,8 +1439,7 @@ |
1446 | 1440 | } |
1447 | 1441 | |
1448 | 1442 | function threadSignature( $thread ) { |
1449 | | - global $wgUser, $wgLang; |
1450 | | - $sk = $wgUser->getSkin(); |
| 1443 | + global $wgLang; |
1451 | 1444 | |
1452 | 1445 | $signature = $thread->signature(); |
1453 | 1446 | $signature = LqtView::parseSignature( $signature ); |
— | — | @@ -1618,8 +1611,6 @@ |
1619 | 1612 | |
1620 | 1613 | /** Shows a deleted thread. Returns true to show the thread body */ |
1621 | 1614 | function showDeletedThread( $thread ) { |
1622 | | - $sk = $this->user->getSkin(); |
1623 | | - |
1624 | 1615 | if ( $this->user->isAllowed( 'deletedhistory' ) ) { |
1625 | 1616 | $this->output->addWikiMsg( 'lqt_thread_deleted_for_sysops' ); |
1626 | 1617 | return true; |
— | — | @@ -1895,7 +1886,6 @@ |
1896 | 1887 | ) ); |
1897 | 1888 | $replyTo = $this->methodAppliesToThread( 'reply', $thread ); |
1898 | 1889 | |
1899 | | - $sk = $this->user->getSkin(); |
1900 | 1890 | $html = ''; |
1901 | 1891 | |
1902 | 1892 | if ( wfRunHooks( 'EditPageBeforeEditToolbar', array( $html ) ) ) { |
Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -64,8 +64,6 @@ |
65 | 65 | $type = Threads::TYPE_NORMAL, $subject = '', |
66 | 66 | $summary = '', $bump = null, $signature = null ) { |
67 | 67 | |
68 | | - $dbw = wfGetDB( DB_MASTER ); |
69 | | - |
70 | 68 | $thread = new Thread( null ); |
71 | 69 | |
72 | 70 | if ( !in_array( $type, self::$VALID_TYPES ) ) { |
— | — | @@ -80,8 +78,6 @@ |
81 | 79 | |
82 | 80 | global $wgUser; |
83 | 81 | |
84 | | - $timestamp = wfTimestampNow(); |
85 | | - |
86 | 82 | $thread->setAuthor( $wgUser ); |
87 | 83 | |
88 | 84 | if ( is_object( $root ) ) { |
Index: trunk/extensions/LiquidThreads/pages/SpecialMoveThread.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | |
41 | 41 | global $wgUser; |
42 | 42 | $sk = $wgUser->getSkin(); |
43 | | - $page = $article_name = $this->mThread->getTitle()->getPrefixedText(); |
| 43 | + $page = $this->mThread->getTitle()->getPrefixedText(); |
44 | 44 | |
45 | 45 | $edit_text = wfMsgExt( 'lqt_move_torename_edit', 'parseinline' ); |
46 | 46 | $edit_link = $sk->link( |
Index: trunk/extensions/LiquidThreads/pages/TalkpageHistoryView.php |
— | — | @@ -33,7 +33,6 @@ |
34 | 34 | function customizeTabs( $skin, &$links ) { |
35 | 35 | TalkpageView::customizeTalkpageTabs( $skin, $links, $this ); |
36 | 36 | |
37 | | - $tabid = $this->article->getTitle()->getNamespaceKey(); |
38 | 37 | $links['history']['class'] = 'selected'; |
39 | 38 | } |
40 | 39 | |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -111,8 +111,6 @@ |
112 | 112 | |
113 | 113 | wfLoadExtensionMessages( 'LiquidThreads' ); |
114 | 114 | |
115 | | - $sk = $this->user->getSkin(); |
116 | | - |
117 | 115 | $html = ''; |
118 | 116 | |
119 | 117 | $h2_header = Xml::tags( 'h2', null, wfMsgExt( 'lqt_contents_title', 'parseinline' ) ); |
— | — | @@ -182,8 +180,6 @@ |
183 | 181 | |
184 | 182 | if ( $article->exists() ) { |
185 | 183 | $form_action_url = $this->talkpageUrl( $this->title, 'talkpage_sort_order' ); |
186 | | - $go = wfMsg( 'go' ); |
187 | | - |
188 | 184 | $html = ''; |
189 | 185 | |
190 | 186 | $html .= Xml::label( wfMsg( 'lqt_sorting_order' ), 'lqt_sort_select' ) . ' '; |
Index: trunk/extensions/LiquidThreads/api/ApiQueryLQTThreads.php |
— | — | @@ -93,7 +93,6 @@ |
94 | 94 | $threads = Threads::loadFromResult( $res, $this->getDB() ); |
95 | 95 | } |
96 | 96 | |
97 | | - |
98 | 97 | $ids = array(); |
99 | 98 | $count = 0; |
100 | 99 | foreach ( $res as $row ) |
Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -23,9 +23,6 @@ |
24 | 24 | // Begin output |
25 | 25 | $this->setHeaders(); |
26 | 26 | |
27 | | - // Get current skin |
28 | | - $sk = $wgUser->getSkin(); |
29 | | - |
30 | 27 | // Check permissions |
31 | 28 | $this->editable = $wgUser->isAllowed( 'centralnotice-admin' ); |
32 | 29 | |
Index: trunk/extensions/Cite/SpecialCite_body.php |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | } |
112 | 112 | |
113 | 113 | function execute() { |
114 | | - global $wgOut, $wgUser, $wgParser, $wgHooks, $wgCiteDefaultText; |
| 114 | + global $wgOut, $wgParser, $wgHooks, $wgCiteDefaultText; |
115 | 115 | |
116 | 116 | $wgHooks['ParserGetVariableValueTs'][] = array( $this, 'timestamp' ); |
117 | 117 | |
Index: trunk/extensions/CentralAuth/SpecialGlobalGroupPermissions.php |
— | — | @@ -70,8 +70,6 @@ |
71 | 71 | function buildMainView() { |
72 | 72 | global $wgOut, $wgUser, $wgScript; |
73 | 73 | |
74 | | - $sk = $wgUser->getSkin(); |
75 | | - |
76 | 74 | $groups = CentralAuthUser::availableGlobalGroups(); |
77 | 75 | |
78 | 76 | // Existing groups |
— | — | @@ -228,7 +226,7 @@ |
229 | 227 | } |
230 | 228 | |
231 | 229 | function doSubmit( $group ) { |
232 | | - global $wgRequest, $wgOut, $wgScript, $wgUser; |
| 230 | + global $wgRequest, $wgOut, $wgUser; |
233 | 231 | |
234 | 232 | // Paranoia -- the edit token shouldn't match anyway |
235 | 233 | if ( !$this->userCanEdit( $wgUser ) ) |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewList.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | function showList( $conds = array( 'af_deleted' => 0 ), $optarray = array() ) { |
47 | 47 | global $wgOut, $wgUser; |
48 | 48 | |
49 | | - $sk = $this->mSkin = $wgUser->getSkin(); |
| 49 | + $this->mSkin = $wgUser->getSkin(); |
50 | 50 | |
51 | 51 | $output = ''; |
52 | 52 | $output .= Xml::element( 'h2', null, |
Index: trunk/extensions/Translate/SpecialTranslations.php |
— | — | @@ -228,7 +228,7 @@ |
229 | 229 | } |
230 | 230 | |
231 | 231 | private static function includeAssets() { |
232 | | - global $wgOut, $wgScript; |
| 232 | + global $wgOut; |
233 | 233 | |
234 | 234 | TranslateUtils::injectCSS(); |
235 | 235 | $wgOut->addScriptFile( TranslateUtils::assetPath( 'js/quickedit.js' ) ); |
Index: trunk/extensions/Translate/ffs/Xliff.php |
— | — | @@ -30,7 +30,6 @@ |
31 | 31 | * Writes very minimalistic header that validates XLIFF schema. |
32 | 32 | */ |
33 | 33 | protected function header( XMLWriter $w, $handle, $code ) { |
34 | | - $header = ''; |
35 | 34 | $w->startDocument( '1.0', 'UTF-8' ); |
36 | 35 | |
37 | 36 | // http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#Specs_XMLDecl |