MDL-28605 repsitory/local - Prevent server running out of memory
authorDan Poltawski <dan.poltawski@luns.net.uk>
Thu, 4 Aug 2011 13:14:38 +0000 (14:14 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 15 Aug 2011 17:57:46 +0000 (19:57 +0200)
Removing useless code..

repository/local/lib.php

index ab374d6..4f36475 100644 (file)
@@ -99,10 +99,6 @@ class repository_local extends repository {
                         continue;
                     }
                     $params = $child->get_params();
-                    $subdir_children = $child->get_children();
-                    //if (empty($subdir_children)) {
-                        //continue;
-                    //}
                     $encodedpath = base64_encode(serialize($params));
                     // hide user_private area from local plugin, user should
                     // use private file plugin to access private files