Revert 37530 -- removes the control option for image moving
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jul 2008 21:53:14 +0000 (21:53 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jul 2008 21:53:14 +0000 (21:53 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/Namespace.php

index 6e894b7..b95022e 100644 (file)
@@ -129,7 +129,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   and local one
 * Update documentation links in auto-generated LocalSettings.php
 * (bug 13584) The new hook SkinTemplateToolboxEnd was added.
-* (bug 709) Cannot rename/move images and other media files
+* (bug 709) Cannot rename/move images and other media files [EXPERIMENTAL]
 * Custom rollback summaries now accept the same arguments as the default message
 * (bug 12542) Added hooks for expansion of Special:Listusers
 * Drop-down AJAX search suggestions (turn on $wgEnableMWSuggest) 
index b7de276..cc49ba6 100644 (file)
@@ -1550,6 +1550,9 @@ $wgAllowExternalImages = false;
   */
 $wgAllowExternalImagesFrom = '';
 
+/** Allows to move images and other media files. Experemintal, not sure if it always works */
+$wgAllowImageMoving = false;
+
 /** Disable database-intensive features */
 $wgMiserMode = false;
 /** Disable all query pages if miser mode is on, not just some */
index 8dd52b9..7c7b7de 100644 (file)
@@ -52,7 +52,8 @@ class MWNamespace {
         * @return bool
         */
        public static function isMovable( $index ) {
-               return !( $index < NS_MAIN || $index == NS_CATEGORY );
+               global $wgAllowImageMoving;
+               return !( $index < NS_MAIN || ($index == NS_IMAGE && !$wgAllowImageMoving)  || $index == NS_CATEGORY );
        }
 
        /**