Index: trunk/phase3/includes/Title.php |
— | — | @@ -1358,11 +1358,6 @@ |
1359 | 1359 | $dbw->delete( 'protected_titles', array( 'pt_namespace' => $namespace, |
1360 | 1360 | 'pt_title' => $title ), __METHOD__ ); |
1361 | 1361 | } |
1362 | | - if($dbw->affectedRows() == 0) { |
1363 | | - //No Change |
1364 | | - return true; |
1365 | | - } |
1366 | | - |
1367 | 1362 | # Update the protection log |
1368 | 1363 | $log = new LogPage( 'protect' ); |
1369 | 1364 | |
— | — | @@ -1818,6 +1813,8 @@ |
1819 | 1814 | } else { // Get rid of the old restrictions |
1820 | 1815 | Title::purgeExpiredRestrictions(); |
1821 | 1816 | } |
| 1817 | + } else { |
| 1818 | + $this->mRestrictionsExpiry = Block::decodeExpiry(''); |
1822 | 1819 | } |
1823 | 1820 | $this->mRestrictionsLoaded = true; |
1824 | 1821 | } |