Permalink
Browse files

Fix upgradeShareFile step

  • Loading branch information...
1 parent a613fe0 commit e5c5dae80f87bb6c027bba6867ba62c82d9880fb @cdujeu cdujeu committed Sep 16, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 dist/php/6.5.1.php
View
@@ -21,12 +21,13 @@
function updateSharePhpContent($installPath, $publicFolder){
+ $publicFolder = preg_replace("/^".str_replace(array("\\","/"), array("\\\\", "\/"), $installPath)."/", "", $publicFolder);
$sharePhpPath = $installPath."/".trim($publicFolder, "/")."/"."share.php";
if(!is_file($sharePhpPath)){
echo "No share.php file was found in public folder. If it does exist, you may have to manually upgrade its content.\n";
return;
}
- echo "Upgrading content of share.php file\n";
+ echo "Upgrading content of $sharePhpPath file\n";
$folders = array_map(function($value){
return "..";
}, explode("/", trim($publicFolder, "/")));

0 comments on commit e5c5dae

Please sign in to comment.