Index: trunk/extensions/CodeReview/ui/CodeCommentsListView.php |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | } |
62 | 62 | |
63 | 63 | function formatValue( $name, $value ) { |
64 | | - global $wgUser, $wgLang; |
| 64 | + global $wgLang; |
65 | 65 | switch( $name ) { |
66 | 66 | case 'cc_rev_id': |
67 | 67 | return $this->mView->mSkin->link( |
Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -281,7 +281,7 @@ |
282 | 282 | function formatValue( $name, $value ) { } // unused |
283 | 283 | |
284 | 284 | function formatRevValue( $name, $value, $row ) { |
285 | | - global $wgUser, $wgLang; |
| 285 | + global $wgLang; |
286 | 286 | $pathQuery = ( strlen($this->mView->mPath) ) ? array('path' => $this->mView->mPath) : array(); |
287 | 287 | |
288 | 288 | switch( $name ) { |
Index: trunk/extensions/CodeReview/ui/CodeReleaseNotes.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | } |
41 | 41 | |
42 | 42 | protected function showForm() { |
43 | | - global $wgOut, $wgScript, $wgUser; |
| 43 | + global $wgOut, $wgScript; |
44 | 44 | $special = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/releasenotes' ); |
45 | 45 | $wgOut->addHTML( |
46 | 46 | Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get' ) ) . |
Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | } |
32 | 32 | |
33 | 33 | function execute() { |
34 | | - global $wgOut, $wgUser, $wgLang; |
| 34 | + global $wgOut, $wgLang; |
35 | 35 | if ( !$this->mRepo ) { |
36 | 36 | $view = new CodeRepoListView(); |
37 | 37 | $view->execute(); |
— | — | @@ -291,7 +291,6 @@ |
292 | 292 | |
293 | 293 | /** Parameters are the tags to be added/removed sent with the request */ |
294 | 294 | static function addTagForm( $addTags, $removeTags ) { |
295 | | - global $wgUser; |
296 | 295 | return '<div><table><tr><td>' . |
297 | 296 | Xml::inputLabel( wfMsg( 'code-rev-tag-add' ), 'wpTag', 'wpTag', 20, |
298 | 297 | self::listTags( $addTags ) ) . '</td><td> </td><td>' . |
— | — | @@ -300,7 +299,6 @@ |
301 | 300 | } |
302 | 301 | |
303 | 302 | protected function formatTag( $tag ) { |
304 | | - global $wgUser; |
305 | 303 | $repo = $this->mRepo->getName(); |
306 | 304 | $special = SpecialPage::getTitleFor( 'Code', "$repo/tag/$tag" ); |
307 | 305 | return $this->mSkin->link( $special, htmlspecialchars( $tag ) ); |
— | — | @@ -611,7 +609,6 @@ |
612 | 610 | } |
613 | 611 | |
614 | 612 | protected function commentReplyLink( $id ) { |
615 | | - global $wgUser; |
616 | 613 | if ( !$this->canPostComments() ) return ''; |
617 | 614 | $repo = $this->mRepo->getName(); |
618 | 615 | $rev = $this->mRev->getId(); |