(bug 26288) $wgDeletedDirectory looks funny on Windows because / should be \ although...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 21 Jan 2011 14:37:00 +0000 (14:37 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 21 Jan 2011 14:37:00 +0000 (14:37 +0000)
includes/installer/WebInstallerPage.php

index 0e2b089..6f968fb 100644 (file)
@@ -809,6 +809,14 @@ class WebInstaller_Options extends WebInstallerPage {
                        $this->addHTML( $extHtml );
                }
 
+               // Having / in paths in Windows looks funny :)
+               $this->setVar( 'wgDeletedDirectory',
+                       str_replace(
+                               '/', DIRECTORY_SEPARATOR,
+                               $this->getVar( 'wgDeletedDirectory' )
+                       )
+               );
+
                $this->addHTML(
                        # Uploading
                        $this->getFieldSetStart( 'config-upload-settings' ) .