Index: trunk/extensions/MetavidWiki/includes/articlepages/MV_StreamPage.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | return new MV_StreamPage( $article->mTitle, $mvTitle ); |
47 | 47 | } |
48 | 48 | public function view() { |
49 | | - global $wgRequest, $wgUser, $wgOut, $wgJsMimeType, $mvgScriptPath; |
| 49 | + global $wgRequest, $wgUser, $wgOut; |
50 | 50 | // @@TODO fix stream view() for old versions ... will likely have to replicate Article::view() |
51 | 51 | |
52 | 52 | // include the metavid headers (for embedding video in the page) |
— | — | @@ -60,7 +60,6 @@ |
61 | 61 | $this->outputWikiText( $text ); |
62 | 62 | } |
63 | 63 | function outputWikiText( $text, $cache = true ) { |
64 | | - global $wgOut, $wgUser; |
65 | 64 | wfProfileIn( __METHOD__ ); |
66 | 65 | $MV_MetavidInterface = new MV_MetavidInterface( 'stream', $this ); |
67 | 66 | // will require the mv_embed script for video playback: |
— | — | @@ -81,7 +80,7 @@ |
82 | 81 | return true; |
83 | 82 | } |
84 | 83 | function viewRequest() { |
85 | | - global $wgRequest, $wgUser, $wgOut, $wgTitle; |
| 84 | + global $wgOut, $wgTitle; |
86 | 85 | // @@TODO figure out a way to be a special page but not be in the special namepsace. |
87 | 86 | // namely hide the edit/discussion links and rarely cache |
88 | 87 | $wgTitle->mNamespace = NS_SPECIAL; |
— | — | @@ -107,7 +106,7 @@ |
108 | 107 | $wgOut->output(); |
109 | 108 | } |
110 | 109 | function delete() { |
111 | | - global $wgOut, $wgRequest, $wgUser; |
| 110 | + global $wgOut, $wgRequest; |
112 | 111 | if ( !$wgRequest->wasPosted() ) { |
113 | 112 | $wgOut->addHTML( wfMsgExt( 'mv_stream_delete_warrning', 'parsemag', |
114 | 113 | MV_Index::countMVDInRange( $this->mvTitle->getStreamId() ) ) ); |
Index: trunk/extensions/MetavidWiki/includes/articlepages/MV_DataPage.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | parent::__construct( $title ); |
19 | 19 | } |
20 | 20 | public function view() { |
21 | | - global $wgRequest, $wgUser, $wgOut, $wgJsMimeType, $mvgScriptPath; |
| 21 | + global $wgRequest, $wgUser, $wgOut; |
22 | 22 | |
23 | 23 | // copied from CategoryPage ... |
24 | 24 | $diff = $wgRequest->getVal( 'diff' ); |