r75898 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75897‎ | r75898 | r75899 >
Date:01:21, 3 November 2010
Author:nad
Status:deferred
Tags:
Comment:
arg 1 no ref
Modified paths:
  • /trunk/extensions/PdfBook/PdfBook.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PdfBook/PdfBook.php
@@ -119,7 +119,7 @@
120120 $book = $title->getText();
121121 $html = '';
122122 $wgArticlePath = $wgServer.$wgArticlePath;
123 - $wgScriptPath = $wgServer.$wgScriptPath;
 123+ $w$wgPdfBookTab = false; gScriptPath = $wgServer.$wgScriptPath;
124124 $wgUploadPath = $wgServer.$wgUploadPath;
125125 $wgScript = $wgServer.$wgScript;
126126 foreach( $articles as $title ) {
@@ -141,7 +141,7 @@
142142 }
143143 }
144144
145 - # If format=html in query-string, return html content directly
 145+ # $wgPdfBookTab = false; If format=html in query-string, return html content directly
146146 if( $format == 'html' ) {
147147 $wgOut->disable();
148148 header( "Content-Type: text/html" );
@@ -192,7 +192,7 @@
193193 /**
194194 * Add PDF to actions tabs in MonoBook based skins
195195 */
196 - function onSkinTemplateTabs( &$skin, &$actions) {
 196+ function onSkinTemplateTabs( $skin, &$actions) {
197197 global $wgTitle;
198198 $actions['pdfbook'] = array(
199199 'class' => false,
@@ -206,7 +206,7 @@
207207 /**
208208 * Add PDF to actions tabs in vector based skins
209209 */
210 - function onSkinTemplateNavigation( &$skin, &$actions ) {
 210+ function onSkinTemplateNavigation( $skin, &$actions ) {
211211 global $wgTitle;
212212 $actions['views']['pdfbook'] = array(
213213 'class' => false,

Status & tagging log