[dev] [trean] delete favicon

Jan Schneider jan at horde.org
Sun Nov 27 04:34:36 PST 2005


Zitat von Martin Lohmeier <martin at mein-horde.de>:

> Hi,
>
> I noticed that the favicon of a bookmark is not deleted if the bookmark
> is deleted. I thought this should be easy to patch, but obviously it
> isn't (for me).
>
> I extended the removeBookmark method with the vfs code from check_links.php:
>
> require_once 'VFS.php';
> $vfs_params = Horde::getVFSConfig('favicons');
> if (!is_a($vfs_params, 'PEAR_Error')) {
>     $vfs = &VFS::singleton($vfs_params['type'], $vfs_params['params']);
> }
>
> and something to delete the favicon:
>
> if($vfs->exists('.horde/trean/favicons/', $bookmark->get('favicon'))) {
>   $vfs->deleteFile('.horde/trean/favicons/', $bookmark->get('favicon'));
> }
>
> Unfortunately this is not working. Everything I try to do with the $vfs
> fails, not only the exists. I tryed create, delete, list...

How does it fail, ie. do you get an error message, or does it fail 
silently, ...?

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the dev mailing list