forked from Public/pics
AssetIterator: rewrite to standard Iterator interface
This commit is contained in:
@@ -289,10 +289,4 @@ class ViewPhotoAlbum extends HTMLController
|
||||
$description = !empty($tag->description) ? $tag->description : '';
|
||||
return new AlbumHeaderBox($tag->tag, $description, $back_link, $back_link_title);
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if (isset($this->iterator))
|
||||
$this->iterator->clean();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,10 +54,4 @@ class ViewTimeline extends HTMLController
|
||||
// Set the canonical url.
|
||||
$this->page->setCanonicalUrl(BASEURL . '/timeline/');
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if (isset($this->iterator))
|
||||
$this->iterator->clean();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user