Author: ralfbecker
New Revision: 55631
URL: http://svn.stylite.de/viewvc/egroupware?rev=55631&view=rev
Log:
we need 4. parameter $try_unregistered parameter in Api\Hooks::single() as it is used by Setup, which is never an installed app
Modified:
trunk/egroupware/api/src/Hooks.php
— trunk/egroupware/api/src/Hooks.php (original)
+++ trunk/egroupware/api/src/Hooks.php Tue Apr 5 18:12:32 2016
@@ -98,7 +98,7 @@
* @param boolean $try_unregistered =false If true, try to include old file-hook anyway (for setup)
* @return mixed False if no hook exists, True if old hook exists and whatever the new method-hook returns (can be True or False too!).
*/
- public static function single($args, $appname = ‘’, $no_permission_check = False)//,$try_unregistered = False)
- public static function single($args, $appname = ‘’, $no_permission_check = False, $try_unregistered = False)
{
//error_log(METHOD."(".array2string($args).",’$appname’,’$no_permission_check’,’$try_unregistered’)");
@@ -149,6 +149,13 @@
catch (\Exception $e) {
_egw_log_exception($e);
}
-
}
-
-
// hooks only existing in filesystem used by setup
-
if (!$ret && $try_unregistered && file_exists(EGW_SERVER_ROOT.($hook='/'.$appname.'/inc/hook_'.$location.'.inc.php')))
-
{
-
include(EGW_SERVER_ROOT.$hook);
-
return true;
}
if (!$ret) return false;
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs