r43615 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43614‎ | r43615 | r43616 >
Date:18:06, 17 November 2008
Author:jojo
Status:ok
Tags:
Comment:
fixes: setup session when Special:Collection page is renderen. replace $writer by constant "rl".
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.body.php
@@ -214,6 +214,8 @@
215215 global $wgScriptPath;
216216 global $wgOut;
217217
 218+ self::startSession();
 219+
218220 $this->setHeaders();
219221 $wgOut->addInlineScript( "var wgCollectionVersion = \"$wgCollectionVersion\";" );
220222 $wgOut->addScript( "<script type=\"$wgJsMimeType\" src=\"$wgScriptPath/extensions/Collection/collection/jquery.js?$wgCollectionStyleVersion\"></script>" );
@@ -962,7 +964,7 @@
963965 'href' => SkinTemplate::makeSpecialUrlSubpage(
964966 'Collection',
965967 'render_article/',
966 - $params . '&writer=' . $writer ),
 968+ $params . '&writer=rl' ),
967969 'text' => wfMsg( 'coll-printable_version_pdf' )
968970 );
969971 }

Status & tagging log