Revert "Updated modules to allow for partial overrides without errors"
This reverts commit db949bb802
.
This commit is contained in:
parent
d6cf791677
commit
b202e02fbf
123 changed files with 471 additions and 768 deletions
|
@ -1,14 +1,15 @@
|
|||
<?php
|
||||
if(! function_exists('community_init')) {
|
||||
|
||||
function community_init(&$a) {
|
||||
if(! local_user()) {
|
||||
unset($_SESSION['theme']);
|
||||
unset($_SESSION['mobile-theme']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(! function_exists('community_content')) {
|
||||
|
||||
function community_content(&$a, $update = 0) {
|
||||
|
||||
$o = '';
|
||||
|
@ -114,9 +115,7 @@ function community_content(&$a, $update = 0) {
|
|||
|
||||
return $o;
|
||||
}
|
||||
}
|
||||
|
||||
if(! function_exists('community_getitems')) {
|
||||
function community_getitems($start, $itemspage) {
|
||||
if (get_config('system','community_page_style') == CP_GLOBAL_COMMUNITY)
|
||||
return(community_getpublicitems($start, $itemspage));
|
||||
|
@ -141,10 +140,9 @@ function community_getitems($start, $itemspage) {
|
|||
);
|
||||
|
||||
return($r);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(! function_exists('community_getpublicitems')) {
|
||||
function community_getpublicitems($start, $itemspage) {
|
||||
$r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
||||
`author-name` AS `name`, `owner-avatar` AS `photo`,
|
||||
|
@ -159,4 +157,3 @@ function community_getpublicitems($start, $itemspage) {
|
|||
|
||||
return($r);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue