Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the parameter to site_menu. Also set three_nids::fancylink and th…

…ree_nids::comment_count helper methods to static.
  • Loading branch information...
commit 283ab5abc9a4fd8d64a4e2ca7997537415bc3bdc 1 parent ab5659b
Tim Almdal talmdal authored
4 themes/three_nids/helpers/three_nids.php
View
@@ -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 @@ public function fancylink($item, $view_type="album", $group_img = true,
return $link;
}
- public function comment_count($item) {
+ static function comment_count($item) {
access::required("view", $item);
return ORM::factory("comment")
2  themes/three_nids/views/page.html.php
View
@@ -98,7 +98,7 @@
<? endif ?>
<div id="g-site-menu">
<? if ($user->admin): ?>
- <?= $theme->site_menu() ?>
+ <?= $theme->site_menu("") ?>
<? endif ?>
</div>
<?= $theme->header_bottom() ?>
Please sign in to comment.
Something went wrong with that request. Please try again.