r48871 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48870‎ | r48871 | r48872 >
Date:12:06, 26 March 2009
Author:jojo
Status:ok
Tags:
Comment:
only show save box, if wiki has edit via API and $wgEnableWriteAPI is true
Modified paths:
  • /trunk/extensions/Collection/Collection.templates.php (modified) (history)
  • /trunk/extensions/Collection/README.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/README.txt
@@ -10,8 +10,11 @@
1111 The *Collection* extension for MediaWiki_ allows users to collect articles and
1212 generate PDFs for article collections and single articles.
1313
14 -The extension has been developed for and tested with MediaWiki_ version 1.11
15 -and later.
 14+The extension has been developed for and tested with MediaWiki_ version 1.13
 15+and later. Some features may not be avaialable with older MediaWikis or with
 16+MediaWikis that don't have the `MediaWiki API`_ enabled. One example is that
 17+MediaWikis < 1.13 don't have the capability to edit articles via API, thus
 18+saving of collections is disabled.
1619
1720 The extension is being developed under the GNU General Public License by
1821 `PediaPress GmbH`_ in close collaboration with `Wikimedia Foundation`_
Index: trunk/extensions/Collection/Collection.templates.php
@@ -103,6 +103,7 @@
104104 </form>
105105 </div>
106106
 107+ <?php if ($GLOBALS['wgEnableWriteAPI']) { ?>
107108 <div style="margin-bottom: 10px; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9;">
108109 <h2><span class="mw-headline"><?php $this->msg('coll-save_collection_title') ?></span></h2>
109110 <?php if ($GLOBALS['wgUser']->isLoggedIn()) { ?>
@@ -149,6 +150,7 @@
150151 $this->msgWiki('coll-save_category');
151152 ?>
152153 </div>
 154+ <?php } ?>
153155
154156 </div>
155157

Status & tagging log