BUGFIX: Fixed bulk loader constructor

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61699 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-08-28 05:00:51 +00:00
parent 18fe7ccdaf
commit bbdcfa1b98

View File

@ -113,9 +113,7 @@ abstract class BulkLoader extends ViewableData {
function __construct($objectClass) {
$this->objectClass = $objectClass;
ini_set('max_execution_time', 3600);
ini_set('memory_limit', '512M');
parent::__construct();
}
/*
@ -124,6 +122,8 @@ abstract class BulkLoader extends ViewableData {
* @return array See {@link self::processAll()}
*/
public function load($filepath) {
ini_set('max_execution_time', 3600);
ini_set('memory_limit', '512M');
return $this->processAll($filepath);
}