From 7780205ba91aea6c50fbc341b49bcfbeb5b41cc2 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 12 Aug 2007 23:59:02 +0000 Subject: [PATCH] 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 --- core/model/DatabaseAdmin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/model/DatabaseAdmin.php b/core/model/DatabaseAdmin.php index ecbf91dbb..941d44918 100644 --- a/core/model/DatabaseAdmin.php +++ b/core/model/DatabaseAdmin.php @@ -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']));