r19065 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19064‎ | r19065 | r19066 >
Date:17:27, 10 January 2007
Author:werdna
Status:old
Tags:
Comment:
Make LinksUpdate in Article::view respect wfReadOnly()
Modified paths:
  • /branches/werdna/restrictions-separation/includes/Article.php (modified) (history)

Diff [purge]

Index: branches/werdna/restrictions-separation/includes/Article.php
@@ -2837,7 +2837,7 @@
28382838 # Get the diff
28392839 $templates_diff = array_diff( $poTemplates, $tlTemplates );
28402840
2841 - if (count( $templates_diff ) > 0) {
 2841+ if (count( $templates_diff ) > 0 && !wfReadOnly()) {
28422842 # Whee, link updates time.
28432843 $u = new LinksUpdate( $this->mTitle, $parserOutput );
28442844