changed to this:
authorRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 09:58:03 +0000 (10:58 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 20 Dec 2016 09:58:03 +0000 (10:58 +0100)
---------------------
function bla (App &$a) {
$a->bla = 'stuff';
}
---------------------

Signed-off-by: Roland Häder <roland@mxchange.org>
boot.php
include/acl_selectors.php
include/api.php
include/cron.php
include/event.php
include/identity.php
include/nav.php
include/text.php

index c500468e5fadb5b028f564c95ad029500518c8f6..c80da23529a5f5b9762d9bb826a48955e76826a7 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1537,7 +1537,7 @@ function check_db() {
  * Sets the base url for use in cmdline programs which don't have
  * $_SERVER variables
  */
-function check_url(&$a) {
+function check_url(App &$a) {
 
        $url = get_config('system','url');
 
@@ -1559,7 +1559,7 @@ function check_url(&$a) {
 /**
  * @brief Automatic database updates
  */
-function update_db(&$a) {
+function update_db(App &$a) {
        $build = get_config('system','build');
        if(! x($build))
                $build = set_config('system','build',DB_UPDATE_VERSION);
@@ -1675,7 +1675,7 @@ function run_update_function($x) {
  * @param App $a
  *
         */
-function check_plugins(&$a) {
+function check_plugins(App &$a) {
 
        $r = q("SELECT * FROM `addon` WHERE `installed` = 1");
        if (dbm::is_result($r))
@@ -2410,7 +2410,8 @@ function get_temppath() {
        return("");
 }
 
-function set_template_engine(&$a, $engine = 'internal') {
+/// @deprecated
+function set_template_engine(App &$a, $engine = 'internal') {
 /// @note This function is no longer necessary, but keep it as a wrapper to the class method
 /// to avoid breaking themes again unnecessarily
 
index ed9c634c23a8073950eb6ae40e146444e8554737..cd68ffaa7d161b7be3a5ab02f9b7f2b4995344d7 100644 (file)
@@ -678,7 +678,7 @@ function acl_lookup(&$a, $out_type = 'json') {
  * @param App $a
  * @return array with the search results
  */
-function navbar_complete(&$a) {
+function navbar_complete(App &$a) {
 
 //     logger('navbar_complete');
 
index df62abd8e6dab1398506b8f7f13d5903251ff451..a450f867a574e45edce018014a10be5944b86cc7 100644 (file)
         * @hook 'logged_in'
         *              array $user     logged user record
         */
-       function api_login(&$a){
+       function api_login(App &$a){
                // login with oauth
                try{
                        $oauth = new FKOAuth1();
         * @param App $a
         * @return string API call result
         */
-       function api_call(&$a){
-               GLOBAL $API, $called_api;
+       function api_call(App &$a){
+               global $API, $called_api;
 
                $type="json";
                if (strpos($a->query_string, ".xml")>0) $type="xml";
index 9530302d347b2b808938a0190df929a45d27a757..e98239b82931aa4a74f56904037843c1385f1102 100644 (file)
@@ -343,7 +343,7 @@ function cron_poll_contacts($argc, $argv) {
  *
  * @param App $a
  */
-function cron_clear_cache(&$a) {
+function cron_clear_cache(App &$a) {
 
        $last = get_config('system','cache_last_cleared');
 
@@ -430,7 +430,7 @@ function cron_clear_cache(&$a) {
  *
  * @param App $a
  */
-function cron_repair_diaspora(&$a) {
+function cron_repair_diaspora(App &$a) {
        $r = q("SELECT `id`, `url` FROM `contact`
                WHERE `network` = '%s' AND (`batch` = '' OR `notify` = '' OR `poll` = '' OR pubkey = '')
                        ORDER BY RAND() LIMIT 50", dbesc(NETWORK_DIASPORA));
index 4abe3ffef54a73a8b4e2264fbfdb74f405b390c9..73e61f25cf3949a20585aafc9dff55a172be6da2 100644 (file)
@@ -206,7 +206,7 @@ function bbtoevent($s) {
 }
 
 
-function sort_by_date($a) {
+function sort_by_date(App &$a) {
 
        usort($a,'ev_compare');
        return $a;
index 5439b2cc1055ccacfab59f4530178710c3ce1449..380560228ab81b7b0229ed7d04b013e14f15edb1 100644 (file)
@@ -599,7 +599,7 @@ function get_events() {
        ));
 }
 
-function advanced_profile(&$a) {
+function advanced_profile(App &$a) {
 
        $o = '';
        $uid = $a->profile['uid'];
@@ -807,7 +807,7 @@ function get_my_url() {
        return false;
 }
 
-function zrl_init(&$a) {
+function zrl_init(App &$a) {
        $tmp_str = get_my_url();
        if(validate_url($tmp_str)) {
 
index f71272f3b1bae1d55a51cf2b8248d56e6da0a335..bd933929d3b6b78ee7e8a3113558cd965e3d152d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-function nav(&$a) {
+function nav(App &$a) {
 
        /*
         *
index 05801d024c6dcb7c1a59d07bde902fe6fe35a637..59d4e1cc9fe290fb7d2c7b93a3e21b396fc58d4d 100644 (file)
@@ -369,7 +369,7 @@ if(! function_exists('paginate')) {
  * @param App $a App instance
  * @return string html for pagination #FIXME remove html
  */
-function paginate(&$a) {
+function paginate(App &$a) {
 
        $data = paginate_data($a);
        $tpl = get_markup_template("paginate.tpl");