In wasDeletedSinceLastEdit(): fix odd string comparison method, there's an operator...
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 28 Sep 2008 04:20:49 +0000 (04:20 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 28 Sep 2008 04:20:49 +0000 (04:20 +0000)
includes/EditPage.php

index 7e8533e..13c9a29 100644 (file)
@@ -326,8 +326,8 @@ class EditPage {
                if ( $this->mTitle->isDeleted() ) {
                        $this->lastDelete = $this->getLastDelete();
                        if ( $this->lastDelete ) {
-                               $deletetime = wfTimestamp( TS_MW, $this->lastDelete->log_timestamp );
-                               if ( ($deletetime - $this->starttime) > 0 ) {
+                               $deleteTime = wfTimestamp( TS_MW, $this->lastDelete->log_timestamp );
+                               if ( $deleteTime > $this->starttime ) {
                                        $this->deletedSinceEdit = true;
                                }
                        }