protected function _call($name, $default, $args = null)
{
try {
$pushed = $GLOBALS['registry']->pushApp($this->getApp(), array('check_perms' => true, 'logintasks' => false));
} catch (Horde_Exception $e) {
return $default;
}
try {
$ret = is_null($args) ? $this->{$name}() : call_user_func(array($this, $name), $args);
} catch (Horde_Exception $e) {
$ret = $default;
}
if ($pushed) {
$GLOBALS['registry']->popApp();
}
return $ret;
}