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:
parent
ab5659be89
commit
283ab5abc9
@ -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")
|
||||
|
@ -98,7 +98,7 @@
|
||||
<? endif ?>
|
||||
<div id="g-site-menu">
|
||||
<? if ($user->admin): ?>
|
||||
<?= $theme->site_menu() ?>
|
||||
<?= $theme->site_menu("") ?>
|
||||
<? endif ?>
|
||||
</div>
|
||||
<?= $theme->header_bottom() ?>
|
||||
|
Reference in New Issue
Block a user