static App
This commit is contained in:
@@ -72,7 +72,7 @@ function menu_render($menu, $class='', $edit = false, $var = array()) {
|
||||
if(! $menu)
|
||||
return '';
|
||||
|
||||
$channel_id = ((is_array(get_app()->profile)) ? get_app()->profile['profile_uid'] : 0);
|
||||
$channel_id = ((is_array(App::$profile)) ? App::$profile['profile_uid'] : 0);
|
||||
if ((! $channel_id) && (local_channel()))
|
||||
$channel_id = local_channel();
|
||||
|
||||
@@ -296,7 +296,7 @@ function menu_add_item($menu_id, $uid, $arr) {
|
||||
$mitem_flags = intval($arr['mitem_flags']);
|
||||
|
||||
if(local_channel() == $uid) {
|
||||
$channel = get_app()->get_channel();
|
||||
$channel = App::get_channel();
|
||||
}
|
||||
|
||||
$acl = new Zotlabs\Access\AccessList($channel);
|
||||
@@ -337,7 +337,7 @@ function menu_edit_item($menu_id, $uid, $arr) {
|
||||
|
||||
|
||||
if(local_channel() == $uid) {
|
||||
$channel = get_app()->get_channel();
|
||||
$channel = App::get_channel();
|
||||
}
|
||||
|
||||
$acl = new Zotlabs\Access\AccessList($channel);
|
||||
|
Reference in New Issue
Block a user