]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge branch 'master' into develop
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 21 Jan 2019 09:04:26 +0000 (10:04 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 21 Jan 2019 09:04:26 +0000 (10:04 +0100)
16 files changed:
1  2 
advancedcontentfilter/advancedcontentfilter.php
buffer/buffer.php
curweather/curweather.php
forumdirectory/forumdirectory.php
fromgplus/fromgplus.php
ifttt/ifttt.php
impressum/impressum.php
jappixmini/jappixmini.php
leistungsschutzrecht/leistungsschutzrecht.php
public_server/public_server.php
pumpio/pumpio.php
statusnet/statusnet.php
testdrive/testdrive.php
twitter/twitter.php
widgets/widgets.php
wppost/wppost.php

Simple merge
index 4c24007caffb05dc7b19034d398c6dc11f8409f6,d1ef63b88b65862862879500e188638f947ab6ac..6d7edc06b3dea3d1d1944ab79bf1751c95aa2555
@@@ -9,12 -9,10 +9,10 @@@
   *
   */
  
- require_once 'include/text.php';
  use Friendica\App;
 -use Friendica\Core\Addon;
  use Friendica\Core\Cache;
  use Friendica\Core\Config;
 +use Friendica\Core\Hook;
  use Friendica\Core\L10n;
  use Friendica\Core\PConfig;
  use Friendica\Core\Renderer;
index c07f072cc17069b2f1bf1176d09030b9e461d014,526a35fe040d52205f7e3cdaa3bcbcc2a052185c..a66e85dd10235c9f65e09e4ea3f01d5e61c937c4
@@@ -20,13 -20,9 +20,9 @@@ use Friendica\Model\Profile
  use Friendica\Util\Strings;
  use Friendica\Util\Temporal;
  
- require_once 'boot.php';
- require_once 'include/dba.php';
- require_once 'include/text.php';
  function forumdirectory_install()
  {
 -      Addon::registerHook('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu');
 +      Hook::register('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu');
  }
  
  function forumdirectory_uninstall()
index 28cb76022f735b988ff356873b983a8c40c205e5,b8217fc0aab398c05f812edc31c7d1b7eabd3e43..245766ddd6f796b152f35c6d55c454adbfa0484e
@@@ -23,12 -23,10 +23,10 @@@ use Friendica\Model\Item
  
  require_once 'mod/share.php';
  require_once 'mod/parse_url.php';
- require_once 'include/text.php';
  function fromgplus_install() {
 -      Addon::registerHook('connector_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
 -      Addon::registerHook('connector_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
 -      Addon::registerHook('cron', 'addon/fromgplus/fromgplus.php', 'fromgplus_cron');
 +      Hook::register('connector_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
 +      Hook::register('connector_settings_post', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings_post');
 +      Hook::register('cron', 'addon/fromgplus/fromgplus.php', 'fromgplus_cron');
  }
  
  function fromgplus_uninstall() {
diff --cc ifttt/ifttt.php
index a18914994a0b705307b14c77104ccdd127a48856,d7eb51094b0e830cb5bd730a93ecc2b9c1a78c4f..3bb55f3568b99362a5585442e92da12f88ed4b71
@@@ -7,11 -7,8 +7,8 @@@
   * Author: Michael Vogel <https://pirati.ca/profile/heluecht>
   */
  require_once 'mod/item.php';
- require_once 'include/items.php';
- require_once 'include/text.php';
  use Friendica\App;
 -use Friendica\Core\Addon;
 +use Friendica\Core\Hook;
  use Friendica\Core\L10n;
  use Friendica\Core\Logger;
  use Friendica\Core\PConfig;
Simple merge
index 13e0cf42edb51f1affebdd921bc42fe2dfc46446,28e238db65c440a3935d33fb4138bf366878653f..f11e9b1195643314ac21f698a7c2977524dd8be3
@@@ -200,23 -200,23 +200,23 @@@ function jappixmini_init(
        if ($role == "pub") {
                $r = q("SELECT * FROM `contact` WHERE LENGTH(`pubkey`) AND `dfrn-id`='%s' LIMIT 1", DBA::escape($dfrn_id));
                if (!count($r)) {
 -                      killme();
 +                      exit();
                }
  
-               $encrypt_func = openssl_public_encrypt;
-               $decrypt_func = openssl_public_decrypt;
+               $encrypt_func = 'openssl_public_encrypt';
+               $decrypt_func = 'openssl_public_decrypt';
                $key = $r[0]["pubkey"];
        } else if ($role == "prv") {
                $r = q("SELECT * FROM `contact` WHERE LENGTH(`prvkey`) AND `issued-id`='%s' LIMIT 1", DBA::escape($dfrn_id));
                if (!count($r)) {
 -                      killme();
 +                      exit();
                }
  
-               $encrypt_func = openssl_private_encrypt;
-               $decrypt_func = openssl_private_decrypt;
+               $encrypt_func = 'openssl_private_encrypt';
+               $decrypt_func = 'openssl_private_decrypt';
                $key = $r[0]["prvkey"];
        } else {
 -              killme();
 +              exit();
        }
  
        $uid = $r[0]["uid"];
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge