diff --git a/setup/cli/package.php b/setup/cli/package.php index f61d9792d934b6585c42438ee531c529bd82efcf..15080fd8ab11eda31d6d09f06e0274f48de99a3b 100755 --- a/setup/cli/package.php +++ b/setup/cli/package.php @@ -140,8 +140,10 @@ chdir($stage_path); // Replace THIS_VERSION in the stage/ folder -shell_exec("find . -name '*.inc.php' -print0 | xargs -0 sed -ri -e \" +shell_exec("sed -ri -e \" s/( *)define\('THIS_VERSION'.*/\\1define('THIS_VERSION', '$version');/ + \" upload/bootstrap.php"); +shell_exec("find . -name '*.inc.php' -print0 | xargs -0 sed -ri -e \" s/( *)ini_set\( *'display_errors'[^)]+\);/\\1ini_set('display_errors', 0);/ s/( *)ini_set\( *'display_startup_errors'[^)]+\);/\\1ini_set('display_startup_errors', 0);/ \"");