logo       

[MediaWiki-CVS] SVN: [54086] trunk/phase3/includes/OutputPage.php: msg#01464

mediawiki-cvs

Subject: [MediaWiki-CVS] SVN: [54086] trunk/phase3/includes/OutputPage.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54086

Revision: 54086
Author: nikerabbit
Date: 2009-07-31 10:21:02 +0000 (Fri, 31 Jul 2009)

Log Message:
-----------
PHP Fatal error: Call to a member function exists() on a non-object in
/var/www/w/includes/OutputPage.php on line 146

Modified Paths:
--------------
trunk/phase3/includes/OutputPage.php

Modified: trunk/phase3/includes/OutputPage.php
===================================================================
--- trunk/phase3/includes/OutputPage.php 2009-07-31 10:07:22 UTC (rev
54085)
+++ trunk/phase3/includes/OutputPage.php 2009-07-31 10:21:02 UTC (rev
54086)
@@ -143,7 +143,7 @@
// add the title revision to the key
$t = Title::newFromText(
$reqSet['title'] );
// if there is no title (don't worry we
just use the $wgStyleVersion var (which should be updated on relevant commits)
- if( $t->exists() ){
+ if( $t && $t->exists() ){
if( $t->getLatestRevID() >
$this->mLatestScriptRevID )

$this->mLatestScriptRevID = $t->getLatestRevID();
}



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@xxxxxxxxxxxxxxxxxxx
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise