diff options
-rw-r--r-- | lib/private/tags.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/private/tags.php b/lib/private/tags.php index 5768f19cf21..05fb117036a 100644 --- a/lib/private/tags.php +++ b/lib/private/tags.php @@ -121,14 +121,6 @@ class Tags implements \OCP\ITags { $this->owners = array_merge($this->owners, \OC\Share\Share::getSharedItemsOwners($this->user, $this->type, true)); $this->backend = \OC\Share\Share::getBackend($this->type); } - $this->loadTags($defaultTags); - } - - /** - * Load tags from db. - * - */ - protected function loadTags($defaultTags=array()) { $this->tags = $this->mapper->loadTags($this->owners, $this->type); if(count($defaultTags) > 0 && count($this->tags) === 0) { @@ -413,7 +405,9 @@ class Tags implements \OCP\ITags { } // reload tags to get the proper ids. - $this->loadTags(); + $this->tags = $this->mapper->loadTags($this->owners, $this->type); + \OCP\Util::writeLog('core', __METHOD__.', tags: ' . print_r($this->tags, true), + \OCP\Util::DEBUG); // Loop through temporarily cached objectid/tagname pairs // and save relations. $tags = $this->tags; |