r81170 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81169‎ | r81170 | r81171 >
Date:22:25, 28 January 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added bug fixes suggested by Atte Peltomaki
Modified paths:
  • /trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php
@@ -125,6 +125,10 @@
126126 }
127127
128128 $title = $article->getTitle();
 129+ if ( ! ApprovedRevs::pageIsApprovable( $title ) ) {
 130+ return true;
 131+ }
 132+
129133 $revisionID = ApprovedRevs::getApprovedRevID( $title );
130134 if ( !empty( $revisionID ) ) {
131135 return true;
@@ -144,6 +148,9 @@
145149 return true;
146150 }
147151
 152+ ApprovedRevs::addCSS();
 153+ ApprovedRevs::loadMessages();
 154+
148155 $content = '';
149156 global $wgOut;
150157 if ( $wgOut->getSubtitle() != '' ) {

Status & tagging log