From: Geoffrey T. D. <da...@us...> - 2002-01-17 22:52:07
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory usw-pr-cvs1:/tmp/cvs-serv20612/lib/plugin Modified Files: RecentChanges.php Log Message: Eliminate DataURL() in favor of Theme::getImageURL(). Index: RecentChanges.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentChanges.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** RecentChanges.php 2002/01/17 20:35:44 1.22 --- RecentChanges.php 2002/01/17 22:52:03 1.23 *************** *** 248,254 **** function image_properties () { return array('title' => WIKI_NAME, 'link' => WikiURL(_("HomePage"), false, 'absurl'), ! 'url' => DataURL($GLOBALS['logo'])); } --- 248,260 ---- function image_properties () { + global $Theme; + + $img_url = $Theme->getImageURL('logo'); + if (!$img_url) + return false; + return array('title' => WIKI_NAME, 'link' => WikiURL(_("HomePage"), false, 'absurl'), ! 'url' => $img_url); } |