Index: trunk/extensions/Configure/Configure.page.php |
— | — | @@ -341,9 +341,9 @@ |
342 | 342 | $skin = $wgUser->getSkin(); |
343 | 343 | $title = $this->getTitle(); |
344 | 344 | $prev = null; |
345 | | - |
| 345 | + |
346 | 346 | ksort($versions); ## Put in ascending order for now. |
347 | | - |
| 347 | + |
348 | 348 | foreach ( $versions as $ts => $data ) { |
349 | 349 | if ( $count > 10 ) { |
350 | 350 | break; |
— | — | @@ -374,7 +374,7 @@ |
375 | 375 | $links[] = $text; |
376 | 376 | } |
377 | 377 | } |
378 | | - |
| 378 | + |
379 | 379 | ## Reset into descending order |
380 | 380 | $links = array_reverse( $links ); |
381 | 381 | |
— | — | @@ -760,15 +760,14 @@ |
761 | 761 | * Like before but only for the header |
762 | 762 | * |
763 | 763 | * @param $msg String: name of the message to display |
764 | | - * @param $close Bool: whether to close a table before the header |
765 | 764 | * @return String xhtml fragment |
766 | 765 | */ |
767 | | - protected function buildTableHeading( $msg, $close = true ) { |
| 766 | + protected function buildTableHeading( $msg ) { |
768 | 767 | $msgName = 'configure-section-' . $msg; |
769 | 768 | $msgVal = wfMsgExt( $msgName, array( 'parseinline' ) ); |
770 | 769 | if ( wfEmptyMsg( $msgName, $msgVal ) ) |
771 | 770 | $msgVal = $msg; |
772 | | - return ( $close ? '</table>' : '' ) . "\n<h2>" . $msgVal . "</h2>\n<table class=\"configure-table\">\n"; |
| 771 | + return "\n<h2>" . $msgVal . "</h2>\n<table class=\"configure-table\">\n"; |
773 | 772 | } |
774 | 773 | |
775 | 774 | /** |
— | — | @@ -1190,13 +1189,13 @@ |
1191 | 1190 | } |
1192 | 1191 | } |
1193 | 1192 | |
1194 | | - if ($thisGroup) { |
1195 | | - $thisSection .= $this->buildTableHeading( $group, !$first ) . $thisGroup . Xml::closeElement( 'table' ); |
| 1193 | + if ( $thisGroup ) { |
| 1194 | + $thisSection .= $this->buildTableHeading( $group ) . $thisGroup . Xml::closeElement( 'table' ); |
1196 | 1195 | $first = false; |
1197 | 1196 | } |
1198 | 1197 | } |
1199 | 1198 | |
1200 | | - if ($thisSection) { |
| 1199 | + if ( $thisSection ) { |
1201 | 1200 | $thisSection = Xml::tags( 'legend', null, wfMsgExt( "configure-section-$title", array( 'parseinline' ) ) ) . $thisSection; |
1202 | 1201 | $ret .= Xml::tags( 'fieldset', null, $thisSection ); |
1203 | 1202 | } |
Index: trunk/extensions/Configure/Configure.php |
— | — | @@ -107,18 +107,21 @@ |
108 | 108 | $wgConfigureNotEditableSettings = array(); |
109 | 109 | |
110 | 110 | /** |
111 | | - * Editable settings |
| 111 | + * Editable settings. If this is a non-empty array, only the settings in this |
| 112 | + * array will be allowed to be modified. |
112 | 113 | */ |
113 | | - # Suggested configuration: |
114 | | -$wgConfigureEditableSettings = array( |
115 | | - 'wgSitename', 'wgLogo', 'wgContentNamespaces', 'wgMetaNamespace', 'wgMetaNamespaceTalk', |
116 | | - 'wgNamespaceAliases', 'wgNamespaceProtection', 'wgNamespaceRobotPolicies', 'wgNamespacesToBeSearchedDefault', |
117 | | - 'wgNamespacesToBeSearchedProject', 'wgNamespacesWithSubpages', 'wgNoFollowNsExceptions', 'wgNonincludableNamespaces', |
118 | | - 'wgSitemapNamespaces', 'wgAutopromote', 'wgGroupPermissions', 'wgAddGroups', 'wgRemoveGroups', 'wgGroupsAddToSelf', |
119 | | - 'wgGroupsRemoveFromSelf', 'wgArticleRobotPolicies', 'wgCapitalLinks', 'wgDefaultLanguageVariant', 'wgExtraSubtitle', |
120 | | - 'wgImportSources', 'wgRateLimits', 'wgAutoConfirmAge', 'wgAutoConfirmCount', 'wgMaxSigChars' |
121 | | -); |
| 114 | +$wgConfigureEditableSettings = array(); |
122 | 115 | |
| 116 | +# Suggested configuration: |
| 117 | +#$wgConfigureEditableSettings = array( |
| 118 | +# 'wgSitename', 'wgLogo', 'wgContentNamespaces', 'wgMetaNamespace', 'wgMetaNamespaceTalk', |
| 119 | +# 'wgNamespaceAliases', 'wgNamespaceProtection', 'wgNamespaceRobotPolicies', 'wgNamespacesToBeSearchedDefault', |
| 120 | +# 'wgNamespacesToBeSearchedProject', 'wgNamespacesWithSubpages', 'wgNoFollowNsExceptions', 'wgNonincludableNamespaces', |
| 121 | +# 'wgSitemapNamespaces', 'wgAutopromote', 'wgGroupPermissions', 'wgAddGroups', 'wgRemoveGroups', 'wgGroupsAddToSelf', |
| 122 | +# 'wgGroupsRemoveFromSelf', 'wgArticleRobotPolicies', 'wgCapitalLinks', 'wgDefaultLanguageVariant', 'wgExtraSubtitle', |
| 123 | +# 'wgImportSources', 'wgRateLimits', 'wgAutoConfirmAge', 'wgAutoConfirmCount', 'wgMaxSigChars' |
| 124 | +#); |
| 125 | + |
123 | 126 | /** |
124 | 127 | * Whether to use the API module |
125 | 128 | */ |