From: Chad Horohoe Date: Fri, 21 Jan 2011 14:37:00 +0000 (+0000) Subject: (bug 26288) $wgDeletedDirectory looks funny on Windows because / should be \ although... X-Git-Tag: 1.31.0-rc.0~32452 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=243a43ff1f4584ddc0d9b86d65f3da6c3dde91d4 (bug 26288) $wgDeletedDirectory looks funny on Windows because / should be \ although / is harmless. --- diff --git a/includes/installer/WebInstallerPage.php b/includes/installer/WebInstallerPage.php index 0e2b08954d..6f968fba5d 100644 --- a/includes/installer/WebInstallerPage.php +++ b/includes/installer/WebInstallerPage.php @@ -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' ) .