Index: trunk/extensions/Configure/CHANGELOG |
— | — | @@ -1,6 +1,10 @@ |
2 | 2 | This file lists changes on this extension. |
3 | 3 | Localisation updates are done on betawiki and aren't listed here. |
4 | 4 | |
| 5 | +0.13.15 - 3 May 2009 |
| 6 | + When using Farmer extension, Special:Farmer/admin will now link to |
| 7 | + Special:Configure and Special:Extensions. |
| 8 | + |
5 | 9 | 0.13.14 - 29 April 2009 |
6 | 10 | Changed section for some settings in Special:Configure. |
7 | 11 | |
Index: trunk/extensions/Configure/Configure.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Configure', |
20 | 20 | 'description' => 'Allow authorised users to configure the wiki via a web-based interface', |
21 | 21 | 'descriptionmsg' => 'configure-desc', |
22 | | - 'version' => '0.13.14', |
| 22 | + 'version' => '0.13.13', |
23 | 23 | ); |
24 | 24 | |
25 | 25 | # Configuration part |
— | — | @@ -210,6 +210,12 @@ |
211 | 211 | # Add custom rights defined in $wgRestrictionLevels |
212 | 212 | $wgHooks['UserGetAllRights'][] = 'efConfigureGetAllRights'; |
213 | 213 | |
| 214 | +# For interaction with Extension:Farmer |
| 215 | +$wgHooks['FarmerAdminPermissions'][] = 'efConfigureFarmerAdminPermissions'; |
| 216 | +$wgHooks['FarmerAdminSkin'][] = 'efConfigureFarmerAdminSkin'; |
| 217 | +$wgHooks['FarmerAdminExtensions'][] = 'efConfigureFarmerAdminExtensions'; |
| 218 | +$wgHooks['FarmerManageExtensions'][] = 'efConfigureFarmerManageExtensions'; |
| 219 | + |
214 | 220 | # Handlers |
215 | 221 | $wgAutoloadClasses['ConfigureHandler'] = $dir . 'Configure.handler.php'; |
216 | 222 | $wgAutoloadClasses['ConfigureHandlerFiles'] = $dir . 'Configure.handler-files.php'; |
Index: trunk/extensions/Configure/Configure.i18n.php |
— | — | @@ -207,6 +207,10 @@ |
208 | 208 | 'configure-boolop-description-or' => 'At least one condition must be true', |
209 | 209 | 'configure-boolop-description-xor' => 'Exactly one condition must be true', |
210 | 210 | 'configure-boolop-description-not' => 'No conditions must be true', |
| 211 | + |
| 212 | + 'configure-farmer-settings' => 'The settings for this wiki can be configured on [[Special:Configure]].', |
| 213 | + 'configure-farmer-extensions' => 'The extensions used in this wiki can be configured on [[Special:Extensions]].', |
| 214 | + 'configure-farmer-extensions-list' => 'The extensions available for this wiki are listed on [[Special:Extensions]].', |
211 | 215 | ); |
212 | 216 | |
213 | 217 | /** Message documentation (Message documentation) |
Index: trunk/extensions/Configure/Configure.func.php |
— | — | @@ -114,3 +114,49 @@ |
115 | 115 | $rights = array_unique( array_merge( $rights, $newrights ) ); |
116 | 116 | return true; |
117 | 117 | } |
| 118 | + |
| 119 | +/** |
| 120 | + * Display link to Special:Configure |
| 121 | + */ |
| 122 | +function efConfigureFarmerAdminPermissions( $farmer ) { |
| 123 | + global $wgOut; |
| 124 | + |
| 125 | + wfLoadExtensionMessages( 'Configure' ); |
| 126 | + $wgOut->wrapWikiMsg( '== $1 ==', 'farmer-basic-permission' ); |
| 127 | + $wgOut->addWikiMsg( 'configure-farmer-settings' ); |
| 128 | + |
| 129 | + return false; |
| 130 | +} |
| 131 | + |
| 132 | +/** |
| 133 | + * Avoid displaying anything :) |
| 134 | + */ |
| 135 | +function efConfigureFarmerAdminSkin( $farmer ) { |
| 136 | + return false; |
| 137 | +} |
| 138 | + |
| 139 | +/** |
| 140 | + * Display link to Special:Extensions |
| 141 | + */ |
| 142 | +function efConfigureFarmerAdminExtensions( $farmer ) { |
| 143 | + global $wgOut; |
| 144 | + |
| 145 | + wfLoadExtensionMessages( 'Configure' ); |
| 146 | + $wgOut->wrapWikiMsg( '== $1 ==', 'farmer-extensions' ); |
| 147 | + $wgOut->addWikiMsg( 'configure-farmer-extensions' ); |
| 148 | + |
| 149 | + return false; |
| 150 | +} |
| 151 | + |
| 152 | +/** |
| 153 | + * Display link to Special:Extensions |
| 154 | + */ |
| 155 | +function efConfigureFarmerManageExtensions( $farmer ) { |
| 156 | + global $wgOut; |
| 157 | + |
| 158 | + wfLoadExtensionMessages( 'Configure' ); |
| 159 | + $wgOut->wrapWikiMsg( '== $1 ==', 'farmer-extensions-available' ); |
| 160 | + $wgOut->addWikiMsg( 'configure-farmer-extensions-list' ); |
| 161 | + |
| 162 | + return false; |
| 163 | +} |