Index: trunk/extensions/PdfBook/PdfBook.php |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | $book = $title->getText(); |
121 | 121 | $html = ''; |
122 | 122 | $wgArticlePath = $wgServer.$wgArticlePath; |
123 | | - $wgScriptPath = $wgServer.$wgScriptPath; |
| 123 | + $w$wgPdfBookTab = false; gScriptPath = $wgServer.$wgScriptPath; |
124 | 124 | $wgUploadPath = $wgServer.$wgUploadPath; |
125 | 125 | $wgScript = $wgServer.$wgScript; |
126 | 126 | foreach( $articles as $title ) { |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | } |
143 | 143 | } |
144 | 144 | |
145 | | - # If format=html in query-string, return html content directly |
| 145 | + # $wgPdfBookTab = false; If format=html in query-string, return html content directly |
146 | 146 | if( $format == 'html' ) { |
147 | 147 | $wgOut->disable(); |
148 | 148 | header( "Content-Type: text/html" ); |
— | — | @@ -192,7 +192,7 @@ |
193 | 193 | /** |
194 | 194 | * Add PDF to actions tabs in MonoBook based skins |
195 | 195 | */ |
196 | | - function onSkinTemplateTabs( &$skin, &$actions) { |
| 196 | + function onSkinTemplateTabs( $skin, &$actions) { |
197 | 197 | global $wgTitle; |
198 | 198 | $actions['pdfbook'] = array( |
199 | 199 | 'class' => false, |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | /** |
208 | 208 | * Add PDF to actions tabs in vector based skins |
209 | 209 | */ |
210 | | - function onSkinTemplateNavigation( &$skin, &$actions ) { |
| 210 | + function onSkinTemplateNavigation( $skin, &$actions ) { |
211 | 211 | global $wgTitle; |
212 | 212 | $actions['views']['pdfbook'] = array( |
213 | 213 | 'class' => false, |