Skip to content
Snippets Groups Projects
Commit 6116dc6b authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Added default parameter $reset to allow for incremental rescan.

parent 6d123e90
No related branches found
No related tags found
No related merge requests found
......@@ -131,8 +131,10 @@ class OC_VCategories {
* }
* $categories->rescan($objects);
*/
public function rescan($objects, $sync=true) {
public function rescan($objects, $sync=true, $reset=true) {
if($reset === true) {
$this->categories = array();
}
foreach($objects as $object) {
//OC_Log::write('core','OC_VCategories::rescan: '.substr($object, 0, 100).'(...)', OC_Log::DEBUG);
$vobject = OC_VObject::parse($object);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment