Author: ralfbecker
New Revision: 55632
URL: http://svn.stylite.de/viewvc/egroupware?rev=55632&view=rev
Log:
fix PHP Fatal error: Call to undefined method setup::deregister_hooks()
Modified:
trunk/setup/applications.php
— trunk/setup/applications.php (original)
+++ trunk/setup/applications.php Tue Apr 5 18:21:23 2016
@@ -42,7 +42,7 @@
‘T_login_stage_header’ => ‘login_stage_header.tpl’,
‘T_setup_main’ => ‘applications.tpl’
));
-$setup_tpl->set_var(‘hidden_vars’, html::input_hidden(‘csrf_token’, Api\Csrf::token(FILE)));
+$setup_tpl->set_var(‘hidden_vars’, Api\Html::input_hidden(‘csrf_token’, Api\Csrf::token(FILE)));
// check CSRF token for POST requests with any content (setup uses empty POST to call it’s modules!)
if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’ && $_POST)
@@ -122,9 +122,11 @@
$install = get_var(‘install’,Array(‘POST’));
$upgrade = get_var(‘upgrade’,Array(‘POST’));
- $register_hooks = false;
- if(!empty($remove) && is_array($remove))
{
@@ -142,10 +144,7 @@
$GLOBALS[‘egw_setup’]->deregister_app($setup_info[$appname][‘name’]);
echo ‘
’ . $app_title . ’ ’ . lang(‘deregistered’) . ‘.’;
@@ -190,8 +189,7 @@
if ($setup_info[$appname]['hooks'])
{
@@ -215,8 +213,16 @@
{
echo ‘
’ . $app_title . ’ ’ . lang(‘upgraded’) . ‘.’;
}
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs