mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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) {
|
||||
$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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user