]> git.mxchange.org Git - friendica.git/blobdiff - mod/cb.php
Bugfix: dba::num_rows hadn't checked the object variable
[friendica.git] / mod / cb.php
index 6375d23984d708c989b81d53699843f9235fb076..030bea4d31849c068a8969c8929fae21530ff421 100644 (file)
@@ -4,20 +4,21 @@
  * General purpose landing page for plugins/addons
  */
 
+use Friendica\App;
 
-function cb_init(&$a) {
+function cb_init(App $a) {
        call_hooks('cb_init');
 }
 
-function cb_post(&$a) {
+function cb_post(App $a) {
        call_hooks('cb_post', $_POST);
 }
 
-function cb_afterpost(&$a) {
+function cb_afterpost(App $a) {
        call_hooks('cb_afterpost');
 }
 
-function cb_content(&$a) {
+function cb_content(App $a) {
        $o = '';
        call_hooks('cb_content', $o);
        return $o;