]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Hook.php
Merge pull request #11099 from nupplaphil/feat/session_cache
[friendica.git] / src / Core / Hook.php
index d7b1f737a0289ad0e30c837ffb33e44fe4acdae7..81c5d882dc1b6688219e4e057e3d2229491c39f9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -218,7 +218,7 @@ class Hook
                } else {
                        // remove orphan hooks
                        $condition = ['hook' => $name, 'file' => $hook[0], 'function' => $hook[1]];
-                       self::delete($condition, ['cascade' => false]);
+                       self::delete($condition);
                }
        }
 
@@ -250,13 +250,12 @@ class Hook
         * We have to clear the cached routerDispatchData because addons can provide routes
         *
         * @param array $condition
-        * @param array $options
         * @return bool
         * @throws \Exception
         */
-       public static function delete(array $condition, array $options = [])
+       public static function delete(array $condition)
        {
-               $result = DBA::delete('hook', $condition, $options);
+               $result = DBA::delete('hook', $condition);
 
                if ($result) {
                        DI::cache()->delete('routerDispatchData');