From: Mr. E23 Date: Fri, 28 Nov 2003 08:28:08 +0000 (+0000) Subject: Clearing linkscc for article on rollback X-Git-Tag: 1.1.0~65 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=961a316dfca5a42067da2afc7bd624e1cc89fef6;p=lhc%2Fweb%2Fwiklou.git Clearing linkscc for article on rollback --- 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 ); }