static App
This commit is contained in:
@@ -8,7 +8,7 @@ function editlayout_init(&$a) {
|
||||
if(argc() > 1 && argv(1) === 'sys' && is_site_admin()) {
|
||||
$sys = get_sys_channel();
|
||||
if($sys && intval($sys['channel_id'])) {
|
||||
$a->is_sys = true;
|
||||
App::$is_sys = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ function editlayout_init(&$a) {
|
||||
|
||||
function editlayout_content(&$a) {
|
||||
|
||||
if(! $a->profile) {
|
||||
if(! App::$profile) {
|
||||
notice( t('Requested profile is not available.') . EOL );
|
||||
$a->error = 404;
|
||||
App::$error = 404;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -34,11 +34,11 @@ function editlayout_content(&$a) {
|
||||
$uid = local_channel();
|
||||
$owner = 0;
|
||||
$channel = null;
|
||||
$observer = $a->get_observer();
|
||||
$observer = App::get_observer();
|
||||
|
||||
$channel = $a->get_channel();
|
||||
$channel = App::get_channel();
|
||||
|
||||
if($a->is_sys && is_site_admin()) {
|
||||
if(App::$is_sys && is_site_admin()) {
|
||||
$sys = get_sys_channel();
|
||||
if($sys && intval($sys['channel_id'])) {
|
||||
$uid = $owner = intval($sys['channel_id']);
|
||||
@@ -102,7 +102,7 @@ function editlayout_content(&$a) {
|
||||
|
||||
$plaintext = true;
|
||||
|
||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
|
||||
App::$page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
|
||||
'$baseurl' => z_root(),
|
||||
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
|
||||
'$pretext' => '',
|
||||
@@ -167,7 +167,7 @@ function editlayout_content(&$a) {
|
||||
'$bang' => '',
|
||||
'$profile_uid' => (intval($owner)),
|
||||
'$jotplugins' => $jotplugins,
|
||||
'$sourceapp' => t($a->sourcename),
|
||||
'$sourceapp' => t(App::$sourcename),
|
||||
'$defexpire' => '',
|
||||
'$feature_expire' => false,
|
||||
'$expires' => t('Set expiration date'),
|
||||
|
||||
Reference in New Issue
Block a user