Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7324
del-order.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:21 PM
2014-11-21 23:21:28 (UTC+0)
Size
831 B
Referenced Files
None
Subscribers
None
del-order.diff
View Options
Index: includes/Article.php
===================================================================
--- includes/Article.php (revision 77540)
+++ includes/Article.php (working copy)
@@ -3281,9 +3281,6 @@
# Clear caches
Article::onArticleDelete( $this->mTitle );
- # Clear the cached article id so the interface doesn't act like we exist
- $this->mTitle->resetArticleID( 0 );
-
# Log the deletion, if the page was suppressed, log it at Oversight instead
$logtype = $suppress ? 'suppress' : 'delete';
$log = new LogPage( $logtype );
@@ -3291,6 +3288,9 @@
# Make sure logging got through
$log->addEntry( 'delete', $this->mTitle, $reason, array() );
+ # Clear the cached article id so the interface doesn't act like we exist
+ $this->mTitle->resetArticleID( 0 );
+
if ( $commit ) {
$dbw->commit();
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6857
Default Alt Text
del-order.diff (831 B)
Attached To
Mode
T28122: No way to get the ID of a deleted page from deletion logs
Attached
Detach File
Event Timeline
Log In to Comment