Index: trunk/extensions/Collection/Collection.templates.php |
— | — | @@ -130,21 +130,17 @@ |
131 | 131 | |
132 | 132 | <?php |
133 | 133 | if ($GLOBALS['wgUser']->isLoggedIn()) { |
134 | | - $showLoginInfo = false; |
135 | 134 | $canSaveUserPage = $GLOBALS['wgUser']->isAllowed('collectionsaveasuserpage'); |
136 | 135 | $canSaveCommunityPage = $GLOBALS['wgUser']->isAllowed('collectionsaveascommunitypage'); |
137 | | - } else { |
138 | | - $showLoginInfo = true; |
139 | 136 | } |
140 | | - if ($GLOBALS['wgEnableWriteAPI'] && ($showLoginInfo || $canSaveUserPage || $canSaveCommunityPage)) { |
| 137 | + if ($GLOBALS['wgEnableWriteAPI'] && ($canSaveUserPage || $canSaveCommunityPage)) { |
141 | 138 | ?> |
142 | 139 | <div id="coll-savebox" style="margin-bottom: 10px; padding: 10px; border: 1px solid #aaa; background-color: #f9f9f9;"> |
143 | 140 | <h2><span class="mw-headline"><?php $this->msg('coll-save_collection_title') ?></span></h2> |
144 | 141 | <?php |
145 | | - if (!$showLoginInfo) { |
146 | | - $this->msgWiki('coll-save_collection_text'); |
147 | | - $bookname = wfMsgForContent('coll-collections'); |
148 | | - $communityCollNS = $GLOBALS['wgCommunityCollectionNamespace']; |
| 142 | + $this->msgWiki('coll-save_collection_text'); |
| 143 | + $bookname = wfMsgForContent('coll-collections'); |
| 144 | + $communityCollNS = $GLOBALS['wgCommunityCollectionNamespace']; |
149 | 145 | ?> |
150 | 146 | <form id="saveForm" action="<?php echo htmlspecialchars(SkinTemplate::makeSpecialUrl('Book')) ?>" method="post"> |
151 | 147 | <table style="width:100%; background-color: transparent;"><tbody> |
— | — | @@ -181,9 +177,7 @@ |
182 | 178 | <input name="bookcmd" type="hidden" value="save_collection" /> |
183 | 179 | </form> |
184 | 180 | |
185 | | - <?php } else { |
186 | | - $this->msgWiki('coll-login_to_save'); |
187 | | - } |
| 181 | + <?php |
188 | 182 | $this->msgWiki('coll-save_category'); |
189 | 183 | ?> |
190 | 184 | </div> |