http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88442
Revision: 88442
Author: nikerabbit
Date: 2011-05-20 06:57:49 +0000 (Fri, 20 May 2011)
Log Message:
-----------
This warning has become unbearable, and there is no hope of it being fixed soon.
Modified Paths:
--------------
trunk/extensions/LiquidThreads/classes/Thread.php
Modified: trunk/extensions/LiquidThreads/classes/Thread.php
===================================================================
--- trunk/extensions/LiquidThreads/classes/Thread.php 2011-05-20 04:51:59 UTC
(rev 88441)
+++ trunk/extensions/LiquidThreads/classes/Thread.php 2011-05-20 06:57:49 UTC
(rev 88442)
@@ -284,12 +284,12 @@
if ( !$id ) {
$id = $dbw->nextSequenceValue( 'thread_thread_id' );
}
-
+
// If there's no root, bail out with an error message
if ( ! $this->rootId && ! ($this->type & Threads::TYPE_DELETED)
) {
throw new MWException( "Non-deleted thread saved with
empty root ID" );
}
-
+
if ( $this->replyCount < -1 ) {
wfWarn( "Saving thread $id with negative reply count
{$this->replyCount} " . wfGetAllCallers() );
$this->replyCount = -1;
@@ -1226,7 +1226,7 @@
if ( is_object( $this->root() ) ) {
return $this->root()->getTitle();
} else {
- wfWarn( "Thread ".$this->id()." has no title." );
+ // wfWarn( "Thread ".$this->id()." has no title." );
return null;
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs