From 961a316dfca5a42067da2afc7bd624e1cc89fef6 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Fri, 28 Nov 2003 08:28:08 +0000 Subject: [PATCH] Clearing linkscc for article on rollback --- includes/Article.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/Article.php b/includes/Article.php index 46dc201574..bf9344ec41 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1009,6 +1009,11 @@ class Article { $wgOut->addHTML( "

" . $newcomment . "

\n
\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 ); } -- 2.20.1