Check for safe mode before setting time limit

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39899 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-12 23:59:02 +00:00
parent ea7761c536
commit 7780205ba9

View File

@ -75,7 +75,9 @@ class DatabaseAdmin extends Controller {
}
// The default time limit of 30 seconds is normally not enough
set_time_limit(600);
if(ini_get("safe_mode") != "1") {
set_time_limit(600);
}
$this->doBuild(isset($_REQUEST['quiet']) ||
isset($_REQUEST['from_installer']));