1
0

Fix the parameter to site_menu. Also set three_nids::fancylink and three_nids::comment_count helper methods to static.

This commit is contained in:
Tim Almdal 2010-06-23 11:04:01 -07:00
parent ab5659be89
commit 283ab5abc9
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
*/
class three_nids_Core {
public function fancylink($item, $view_type="album", $group_img = true,
static function fancylink($item, $view_type="album", $group_img = true,
$display_comment = true, $parent_title_class = "h2") {
// view_type = album || dynamic || header
$link = "";
@ -112,7 +112,7 @@ class three_nids_Core {
return $link;
}
public function comment_count($item) {
static function comment_count($item) {
access::required("view", $item);
return ORM::factory("comment")

View File

@ -98,7 +98,7 @@
<? endif ?>
<div id="g-site-menu">
<? if ($user->admin): ?>
<?= $theme->site_menu() ?>
<?= $theme->site_menu("") ?>
<? endif ?>
</div>
<?= $theme->header_bottom() ?>