Exemplo n.º 1
0
 private function removeAlbum()
 {
     //remove album from database
     if ($this->album->delete()) {
         $directory = $this->path->base . $this->conf->gFolder . '/' . $this->pid . '/';
         MyFiles::rrmdir($directory);
         self::removeAlbumFromAllCollections($this->pid);
     } else {
         throw new Exception('fbgallery - Remove album - ' . $this->tr('cantRemoveAlbum'));
     }
 }