Index: trunk/phase3/includes/Namespace.php |
— | — | @@ -52,7 +52,8 @@ |
53 | 53 | * @return bool |
54 | 54 | */ |
55 | 55 | public static function isMovable( $index ) { |
56 | | - return !( $index < NS_MAIN || $index == NS_CATEGORY ); |
| 56 | + global $wgAllowImageMoving; |
| 57 | + return !( $index < NS_MAIN || ($index == NS_IMAGE && !$wgAllowImageMoving) || $index == NS_CATEGORY ); |
57 | 58 | } |
58 | 59 | |
59 | 60 | /** |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1550,6 +1550,9 @@ |
1551 | 1551 | */ |
1552 | 1552 | $wgAllowExternalImagesFrom = ''; |
1553 | 1553 | |
| 1554 | +/** Allows to move images and other media files. Experemintal, not sure if it always works */ |
| 1555 | +$wgAllowImageMoving = false; |
| 1556 | + |
1554 | 1557 | /** Disable database-intensive features */ |
1555 | 1558 | $wgMiserMode = false; |
1556 | 1559 | /** Disable all query pages if miser mode is on, not just some */ |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -129,7 +129,7 @@ |
130 | 130 | and local one |
131 | 131 | * Update documentation links in auto-generated LocalSettings.php |
132 | 132 | * (bug 13584) The new hook SkinTemplateToolboxEnd was added. |
133 | | -* (bug 709) Cannot rename/move images and other media files |
| 133 | +* (bug 709) Cannot rename/move images and other media files [EXPERIMENTAL] |
134 | 134 | * Custom rollback summaries now accept the same arguments as the default message |
135 | 135 | * (bug 12542) Added hooks for expansion of Special:Listusers |
136 | 136 | * Drop-down AJAX search suggestions (turn on $wgEnableMWSuggest) |