[svn r43671] fix: startSession() clears session, so check if we do not have a session before calling it Collection svn.43671
authorjojo
Tue Nov 18 13:29:11 2008 +0100 (6 weeks ago)
branchCollection
changeset 402342709d58886
parent 4013ef492a866e2
child 4032b7ee08e284a
[svn r43671] fix: startSession() clears session, so check if we do not have a session before calling it
Collection.body.php
       1 --- a/Collection.body.php	Mon Nov 17 21:23:37 2008 +0100
       2 +++ b/Collection.body.php	Tue Nov 18 13:29:11 2008 +0100
       3 @@ -214,7 +214,9 @@
       4  		global $wgScriptPath;
       5  		global $wgOut;
       6  
       7 -		self::startSession();
       8 +		if ( !self::hasSession() ) {
       9 +			self::startSession();
      10 +		}
      11  		
      12  		$this->setHeaders();
      13  		$wgOut->addInlineScript( "var wgCollectionVersion = \"$wgCollectionVersion\";" );