"fixed not working egw_link::set_cache"

This commit is contained in:
Ralf Becker 2009-09-29 09:59:53 +00:00
parent 1a15b79c7e
commit c9f380eb1e

View File

@ -699,7 +699,7 @@ class egw_link extends solink
* *
* @param string $app app-name * @param string $app app-name
* @param string $action='view' name of the action, atm. 'view' or 'add' * @param string $action='view' name of the action, atm. 'view' or 'add'
* @return boolean/string false if no popup is used or $app is not registered, otherwise string with the prefered popup size (eg. '640x400) * @return boolean|string false if no popup is used or $app is not registered, otherwise string with the prefered popup size (eg. '640x400)
*/ */
static function is_popup($app,$action='view') static function is_popup($app,$action='view')
{ {
@ -711,7 +711,7 @@ class egw_link extends solink
* *
* @param string $app app-name * @param string $app app-name
* @param string $name name / key in the registry, eg. 'view' * @param string $name name / key in the registry, eg. 'view'
* @return boolean/string false if $app is not registered, otherwise string with the value for $name * @return boolean|string false if $app is not registered, otherwise string with the value for $name
*/ */
static function get_registry($app,$name) static function get_registry($app,$name)
{ {
@ -803,7 +803,7 @@ class egw_link extends solink
* @param int/string $app > 0: file_id of an attchemnt or $app/$id entry which linked to * @param int/string $app > 0: file_id of an attchemnt or $app/$id entry which linked to
* @param string $id='' id in app * @param string $id='' id in app
* @param string $fname='' filename * @param string $fname='' filename
* @return boolean/array false on error ($app or $id not found), array with path as key and boolean result of delete * @return boolean|array false on error ($app or $id not found), array with path as key and boolean result of delete
*/ */
static function delete_attached($app,$id='',$fname='') static function delete_attached($app,$id='',$fname='')
{ {
@ -1037,7 +1037,7 @@ class egw_link extends solink
public static function set_cache($app,$id,$title,$file_access=null) public static function set_cache($app,$id,$title,$file_access=null)
{ {
//error_log(__METHOD__."($app,$id,$title,$file_access)"); //error_log(__METHOD__."($app,$id,$title,$file_access)");
if (!is_null($file_access)) if (!is_null($title))
{ {
$cache =& self::get_cache($app,$id); $cache =& self::get_cache($app,$id);
$cache = $title; $cache = $title;