diff options
author | Mario <mario@mariovavti.com> | 2023-09-21 08:34:02 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-09-21 08:34:02 +0000 |
commit | a5e32dc3de997c3a3d9046161ce1ec149abb65c1 (patch) | |
tree | 3c7312f8bc2bcc6083d9b96408c5816ff79acb71 | |
parent | 150174c3bb5578e0dfc20ac97a061d170fc90f5a (diff) | |
download | volse-hubzilla-a5e32dc3de997c3a3d9046161ce1ec149abb65c1.tar.gz volse-hubzilla-a5e32dc3de997c3a3d9046161ce1ec149abb65c1.tar.bz2 volse-hubzilla-a5e32dc3de997c3a3d9046161ce1ec149abb65c1.zip |
more deprecate $a
-rw-r--r-- | Zotlabs/Module/Admin/Accounts.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Admin/Channels.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Blocks.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Channel.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Connections.php | 1 | ||||
-rw-r--r-- | Zotlabs/Module/Display.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Editblock.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Editlayout.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Editpost.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Editwebpage.php | 10 | ||||
-rw-r--r-- | Zotlabs/Module/Hq.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Layouts.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Network.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Photos.php | 9 | ||||
-rw-r--r-- | Zotlabs/Module/Pubstream.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Rpost.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Webpages.php | 2 | ||||
-rw-r--r-- | boot.php | 3 | ||||
-rw-r--r-- | include/conversation.php | 6 | ||||
-rw-r--r-- | include/text.php | 3 |
20 files changed, 30 insertions, 30 deletions
diff --git a/Zotlabs/Module/Admin/Accounts.php b/Zotlabs/Module/Admin/Accounts.php index 1c1911b3a..b067b4bf6 100644 --- a/Zotlabs/Module/Admin/Accounts.php +++ b/Zotlabs/Module/Admin/Accounts.php @@ -346,7 +346,7 @@ class Accounts { '$users' => $users, '$msg' => t('Message') )); - $o .= paginate($a); + $o .= paginate(); return $o; } diff --git a/Zotlabs/Module/Admin/Channels.php b/Zotlabs/Module/Admin/Channels.php index 09769a166..c6b7ad17a 100644 --- a/Zotlabs/Module/Admin/Channels.php +++ b/Zotlabs/Module/Admin/Channels.php @@ -168,7 +168,7 @@ class Channels { '$baseurl' => z_root(), '$channels' => $channels, )); - $o .= paginate($a); + $o .= paginate(); return $o; } diff --git a/Zotlabs/Module/Blocks.php b/Zotlabs/Module/Blocks.php index e0de23fdb..84f769612 100644 --- a/Zotlabs/Module/Blocks.php +++ b/Zotlabs/Module/Blocks.php @@ -107,7 +107,7 @@ class Blocks extends \Zotlabs\Web\Controller { $x['pagetitle'] = $_REQUEST['pagetitle'] ?? ''; $a = ''; - $editor = status_editor($a,$x,false,'Blocks'); + $editor = status_editor($x, false, 'Blocks'); $r = q("select iconfig.iid, iconfig.k, iconfig.v, mid, title, body, mimetype, created, edited from iconfig diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index 036663681..e8c3316e9 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -268,7 +268,7 @@ class Channel extends Controller { ]; $a = ''; - $o .= status_editor($a, $x, false, 'Channel'); + $o .= status_editor($x, false, 'Channel'); } // Add pinned content diff --git a/Zotlabs/Module/Connections.php b/Zotlabs/Module/Connections.php index e0f463c76..8a06ab8e0 100644 --- a/Zotlabs/Module/Connections.php +++ b/Zotlabs/Module/Connections.php @@ -409,7 +409,6 @@ class Connections extends \Zotlabs\Web\Controller { '$approve' => t('Approve'), '$cmd' => App::$cmd, '$contacts' => $contacts, - '$paginate' => paginate($a), '$abook_usage_message' => $abook_usage_message, '$group_label' => t('This is a group/forum channel') ]); diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php index 31f6bb7a4..9e46d7620 100644 --- a/Zotlabs/Module/Display.php +++ b/Zotlabs/Module/Display.php @@ -89,7 +89,7 @@ class Display extends Controller { $o .= '<div id="jot-popup">'; $a = ''; - $o .= status_editor($a,$x,false,'Display'); + $o .= status_editor($x, false, 'Display'); $o .= '</div>'; } diff --git a/Zotlabs/Module/Editblock.php b/Zotlabs/Module/Editblock.php index c031f32a1..1cbb1aee2 100644 --- a/Zotlabs/Module/Editblock.php +++ b/Zotlabs/Module/Editblock.php @@ -132,7 +132,7 @@ class Editblock extends \Zotlabs\Web\Controller { 'bbcode' => (($mimetype == 'text/bbcode') ? true : false) ); - $editor = status_editor($a, $x, false, 'Editblock'); + $editor = status_editor($x, false, 'Editblock'); $o .= replace_macros(get_markup_template('edpost_head.tpl'), array( '$title' => t('Edit Block'), diff --git a/Zotlabs/Module/Editlayout.php b/Zotlabs/Module/Editlayout.php index 50096f1a1..1a3f5614c 100644 --- a/Zotlabs/Module/Editlayout.php +++ b/Zotlabs/Module/Editlayout.php @@ -131,7 +131,7 @@ class Editlayout extends \Zotlabs\Web\Controller { 'profile_uid' => intval($owner), ); - $editor = status_editor($a, $x, false, 'Editlayout'); + $editor = status_editor($x, false, 'Editlayout'); $o .= replace_macros(get_markup_template('edpost_head.tpl'), array( '$title' => t('Edit Layout'), diff --git a/Zotlabs/Module/Editpost.php b/Zotlabs/Module/Editpost.php index b21c58af2..5e405bdbc 100644 --- a/Zotlabs/Module/Editpost.php +++ b/Zotlabs/Module/Editpost.php @@ -107,7 +107,7 @@ class Editpost extends \Zotlabs\Web\Controller { ); $a = ''; - $editor = status_editor($a, $x, false, 'Editpost'); + $editor = status_editor($x, false, 'Editpost'); $o .= replace_macros(get_markup_template('edpost_head.tpl'), array( '$title' => t('Edit post'), diff --git a/Zotlabs/Module/Editwebpage.php b/Zotlabs/Module/Editwebpage.php index 785eeb4ec..ab4858d63 100644 --- a/Zotlabs/Module/Editwebpage.php +++ b/Zotlabs/Module/Editwebpage.php @@ -75,7 +75,7 @@ class Editwebpage extends \Zotlabs\Web\Controller { // Figure out which post we're editing $post_id = ((argc() > 2) ? intval(argv(2)) : 0); - + if(! $post_id) { notice( t('Item not found') . EOL); return; @@ -90,7 +90,7 @@ class Editwebpage extends \Zotlabs\Web\Controller { return; } - // We've already figured out which item we want and whose copy we need, + // We've already figured out which item we want and whose copy we need, // so we don't need anything fancy here $sql_extra = item_permissions_sql($owner); @@ -122,13 +122,13 @@ class Editwebpage extends \Zotlabs\Web\Controller { return; } } - + $layout = $itm[0]['layout_mid']; $content = $itm[0]['body']; if($itm[0]['mimetype'] === 'text/markdown') $content = \Zotlabs\Lib\MarkdownSoap::unescape($itm[0]['body']); - + $rp = 'webpages/' . $which; $x = array( @@ -160,7 +160,7 @@ class Editwebpage extends \Zotlabs\Web\Controller { 'bbcode' => (($mimetype == 'text/bbcode') ? true : false) ); - $editor = status_editor($a, $x, false, 'Editwebpage'); + $editor = status_editor($x, false, 'Editwebpage'); $o .= replace_macros(get_markup_template('edpost_head.tpl'), array( '$title' => t('Edit Webpage'), diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php index 05b48f119..4fb1891d5 100644 --- a/Zotlabs/Module/Hq.php +++ b/Zotlabs/Module/Hq.php @@ -104,7 +104,7 @@ class Hq extends \Zotlabs\Web\Controller { ]; $a = ''; - $o .= status_editor($a, $x, true); + $o .= status_editor($x, true, 'Hq'); } diff --git a/Zotlabs/Module/Layouts.php b/Zotlabs/Module/Layouts.php index 949f8e8ec..143e4110b 100644 --- a/Zotlabs/Module/Layouts.php +++ b/Zotlabs/Module/Layouts.php @@ -139,7 +139,7 @@ class Layouts extends \Zotlabs\Web\Controller { $x['pagetitle'] = $_REQUEST['pagetitle'] ?? ''; $a = ''; - $editor = status_editor($a,$x,false,'Layouts'); + $editor = status_editor($x, false, 'Layouts'); $r = q("select iconfig.iid, iconfig.v, mid, title, body, mimetype, created, edited, item_type from iconfig left join item on iconfig.iid = item.id diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index dcc209d1d..4f8e2f4e4 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -214,7 +214,7 @@ class Network extends \Zotlabs\Web\Controller { ); $a = ''; - $status_editor = status_editor($a, $x, false, 'Network'); + $status_editor = status_editor($x, false, 'Network'); $o .= $status_editor; } diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php index 68f7c55e7..6c73c411e 100644 --- a/Zotlabs/Module/Photos.php +++ b/Zotlabs/Module/Photos.php @@ -851,6 +851,10 @@ class Photos extends \Zotlabs\Web\Controller { dbesc($datum) ); + $tags = []; + $likebuttons = []; + $comments = ''; + if(! ($ph && $x)) { /* Check again - this time without specifying permissions */ @@ -981,7 +985,6 @@ class Photos extends \Zotlabs\Web\Controller { $r = conv_sort($r,'commented'); } - $tags = array(); if(x($link_item, 'term')) { $cnt = 0; foreach($link_item['term'] as $t) { @@ -1075,7 +1078,6 @@ class Photos extends \Zotlabs\Web\Controller { ]; } - $comments = ''; if(! $r) { if($observer && ($can_post || $can_comment)) { $commentbox = replace_macros($cmnt_tpl,array( @@ -1209,13 +1211,12 @@ class Photos extends \Zotlabs\Web\Controller { } } - $paginate = paginate($a); } $album_e = array($album_link,$ph[0]['album']); $like_e = $like; $dislike_e = $dislike; - + $paginate = paginate(); $response_verbs = array('like'); if(feature_enabled($owner_uid,'dislike')) diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php index 4b1cd6afb..08de168cb 100644 --- a/Zotlabs/Module/Pubstream.php +++ b/Zotlabs/Module/Pubstream.php @@ -91,7 +91,7 @@ class Pubstream extends \Zotlabs\Web\Controller { $o .= '<div id="jot-popup">'; $a = ''; - $o .= status_editor($a,$x,false,'Pubstream'); + $o .= status_editor($x, false, 'Pubstream'); $o .= '</div>'; } diff --git a/Zotlabs/Module/Rpost.php b/Zotlabs/Module/Rpost.php index f0194fdfd..a5750edcb 100644 --- a/Zotlabs/Module/Rpost.php +++ b/Zotlabs/Module/Rpost.php @@ -205,7 +205,7 @@ class Rpost extends \Zotlabs\Web\Controller { ); $a = ''; - $editor = status_editor($a,$x,false,'Rpost'); + $editor = status_editor($x, false, 'Rpost'); $o .= replace_macros(get_markup_template('edpost_head.tpl'), array( '$title' => t('Edit post'), diff --git a/Zotlabs/Module/Webpages.php b/Zotlabs/Module/Webpages.php index b58c23b34..ffb0d94ea 100644 --- a/Zotlabs/Module/Webpages.php +++ b/Zotlabs/Module/Webpages.php @@ -204,7 +204,7 @@ class Webpages extends Controller { $x['pagetitle'] = 'home'; $a = ''; - $editor = status_editor($a,$x,false,'Webpages'); + $editor = status_editor($x, false, 'Webpages'); $pages = null; @@ -872,7 +872,8 @@ class App { date_default_timezone_set('UTC'); self::$config = ['system' => []]; - self::$page = []; + self::$page['htmlhead'] = ''; + self::$pager = []; self::$query_string = ''; diff --git a/include/conversation.php b/include/conversation.php index 5e63c4199..f8d5f7ec0 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1306,11 +1306,11 @@ function format_like($cnt, $arr, $type, $id) { /** * Wrapper to allow addons to replace the status editor if desired. */ -function status_editor($a, $x, $popup = false, $module='') { +function status_editor($x, $popup = false, $module='') { $hook_info = ['editor_html' => '', 'x' => $x, 'popup' => $popup, 'module' => $module]; call_hooks('status_editor',$hook_info); if ($hook_info['editor_html'] == '') { - return hz_status_editor($a, $x, $popup); + return hz_status_editor($x, $popup); } else { return $hook_info['editor_html']; } @@ -1322,7 +1322,7 @@ function status_editor($a, $x, $popup = false, $module='') { * They are referring to the content editor or components thereof. */ -function hz_status_editor($a, $x, $popup = false) { +function hz_status_editor($x, $popup = false) { $o = ''; diff --git a/include/text.php b/include/text.php index 6ab8fc1ce..4088e85e1 100644 --- a/include/text.php +++ b/include/text.php @@ -528,9 +528,8 @@ function unxmlify($s) { * will limit the results to the correct items for the current page. * The actual page handling is then accomplished at the application layer. * - * @param App &$a */ -function paginate(&$a) { +function paginate() { $o = ''; $stripped = preg_replace('/(&page=[0-9]*)/','',App::$query_string); |