mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
18fe7ccdaf
commit
bbdcfa1b98
@ -113,9 +113,7 @@ abstract class BulkLoader extends ViewableData {
|
|||||||
|
|
||||||
function __construct($objectClass) {
|
function __construct($objectClass) {
|
||||||
$this->objectClass = $objectClass;
|
$this->objectClass = $objectClass;
|
||||||
|
parent::__construct();
|
||||||
ini_set('max_execution_time', 3600);
|
|
||||||
ini_set('memory_limit', '512M');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -124,6 +122,8 @@ abstract class BulkLoader extends ViewableData {
|
|||||||
* @return array See {@link self::processAll()}
|
* @return array See {@link self::processAll()}
|
||||||
*/
|
*/
|
||||||
public function load($filepath) {
|
public function load($filepath) {
|
||||||
|
ini_set('max_execution_time', 3600);
|
||||||
|
ini_set('memory_limit', '512M');
|
||||||
return $this->processAll($filepath);
|
return $this->processAll($filepath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user