Don't log if we unprotect and unprotected page but try to set an expiry
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 12 Apr 2008 00:30:01 +0000 (00:30 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 12 Apr 2008 00:30:01 +0000 (00:30 +0000)
includes/Article.php

index 3f3cdff..dbb668a 100644 (file)
@@ -1778,8 +1778,8 @@ class Article {
                $updated = Article::flattenRestrictions( $limit );
 
                $changed = ( $current != $updated );
-               $changed = $changed || ($this->mTitle->areRestrictionsCascading() != $cascade);
-               $changed = $changed || ($this->mTitle->mRestrictionsExpiry != $expiry);
+               $changed = $changed || ($updated && $this->mTitle->areRestrictionsCascading() != $cascade);
+               $changed = $changed || ($updated && $this->mTitle->mRestrictionsExpiry != $expiry);
                $protect = ( $updated != '' );
 
                # If nothing's changed, do nothing