Make functions static.
This commit is contained in:
parent
97088a3b03
commit
071e931642
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
class three_nids_Core {
|
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") {
|
$display_comment = true, $parent_title_class = "h2") {
|
||||||
// view_type = album || dynamic || header
|
// view_type = album || dynamic || header
|
||||||
$link = "";
|
$link = "";
|
||||||
@ -112,7 +112,7 @@ class three_nids_Core {
|
|||||||
return $link;
|
return $link;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function comment_count($item) {
|
static function comment_count($item) {
|
||||||
access::required("view", $item);
|
access::required("view", $item);
|
||||||
|
|
||||||
return ORM::factory("comment")
|
return ORM::factory("comment")
|
||||||
|
Reference in New Issue
Block a user