mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
- Fixed corrupt $menuaction reporting showing wrong message along with it ... make sense ? Good ... wanna explain it to me sometime ?
- Changed to use proper phpgwapi redirect
This commit is contained in:
parent
31287b0095
commit
4e97c08c23
19
index.php
19
index.php
@ -72,15 +72,17 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Header('Location: ' . $GLOBALS['phpgw']->link('/home.php'));
|
if (! $app || ! $class || ! $method)
|
||||||
$GLOBALS['phpgw']->log->message(array(
|
{
|
||||||
'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1',
|
$GLOBALS['phpgw']->log->message(array(
|
||||||
'p1' => $menuaction,
|
'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1',
|
||||||
'line' => __LINE__,
|
'p1' => $menuaction,
|
||||||
'file' => __FILE__
|
'line' => __LINE__,
|
||||||
|
'file' => __FILE__
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
));
|
if (! is_array($obj->public_functions) || ! $obj->public_functions[$method] && $method)
|
||||||
if (! is_array($obj->public_functions) || ! $obj->public_functions[$method])
|
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw']->log->message(array(
|
$GLOBALS['phpgw']->log->message(array(
|
||||||
'text' => 'W-BadmenuactionVariable, attempted to access private method: %1',
|
'text' => 'W-BadmenuactionVariable, attempted to access private method: %1',
|
||||||
@ -91,6 +93,7 @@
|
|||||||
}
|
}
|
||||||
$GLOBALS['phpgw']->log->commit();
|
$GLOBALS['phpgw']->log->commit();
|
||||||
|
|
||||||
|
$phpgw->redirect($GLOBALS['phpgw']->link('/home.php'));
|
||||||
/*
|
/*
|
||||||
$_obj = CreateObject('home.home');
|
$_obj = CreateObject('home.home');
|
||||||
$_obj->get_list();
|
$_obj->get_list();
|
||||||
|
Loading…
Reference in New Issue
Block a user