Clearing linkscc for article on rollback
authorMr. E23 <e23@users.mediawiki.org>
Fri, 28 Nov 2003 08:28:08 +0000 (08:28 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Fri, 28 Nov 2003 08:28:08 +0000 (08:28 +0000)
includes/Article.php

index 46dc201..bf9344e 100644 (file)
@@ -1009,6 +1009,11 @@ class Article {
                $wgOut->addHTML( "<h2>" . $newcomment . "</h2>\n<hr>\n" );
                $this->updateArticle( $s->old_text, $newcomment, 1, $this->mTitle->userIsWatching() );
 
+               global $wgEnablePersistentLC;
+               if ( $wgEnablePersistentLC ) {
+                       wfQuery("DELETE FROM linkscc WHERE lcc_pageid='{$pid}'", DB_WRITE);
+               }
+       
                $wgOut->returnToMain( false );
        }