[dev] [trean] delete favicon

Martin Lohmeier martin at mein-horde.de
Sat Nov 26 12:23:48 PST 2005


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...

Does someboby know what I'm missing?

bye, Martin
-- 

Powered by Debian GNU / Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.horde.org/archives/dev/attachments/20051126/6bd665bc/signature.bin


More information about the dev mailing list