mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 46506 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-privacy ........ r46506 | aoneil | 2007-12-10 10:50:26 +1300 (Mon, 10 Dec 2007) | 2 lines Remove comments ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46775 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4a233b8854
commit
69d40fd5aa
@ -232,9 +232,7 @@ class File extends DataObject {
|
||||
|
||||
function loadallcontent() {
|
||||
ini_set("max_execution_time", 50000);
|
||||
// get all file objects(not folders)
|
||||
//$start = (int)$_GET[start];
|
||||
$allFiles = DataObject::get("File"); /*, "ClassName = 'File' AND Filename LIKE '%.pdf'"/*, "", "", "$start, 5"*///);
|
||||
$allFiles = DataObject::get("File");
|
||||
$total = $allFiles->TotalItems();
|
||||
|
||||
$i = 0;
|
||||
@ -244,9 +242,6 @@ class File extends DataObject {
|
||||
`echo "$i / $total" > $tmp/progress`;
|
||||
$file->loadContent();
|
||||
}
|
||||
//Director::redirect(HTTP::setGetVar("start", $start + 5));
|
||||
|
||||
// run loadcontent on each one
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user