Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory usw-pr-cvs1:/tmp/cvs-serv1910
Modified Files:
RecentChanges.php
Log Message:
RSS image can now be customized by themes via $rssicon.
Index: RecentChanges.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentChanges.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** RecentChanges.php 2001/12/26 10:38:11 1.16
--- RecentChanges.php 2002/01/05 11:46:03 1.17
***************
*** 115,123 ****
function rss_icon () {
! global $request;
$rss_url = $request->getURLtoSelf(array('format' => 'rss'));
return Element('a', array('href' => $rss_url),
! Element('img', array('src' => DataURL('images/rss.png'),
'alt' => _("RSS available"),
'class' => 'rssicon')));
--- 115,125 ----
function rss_icon () {
! global $request, $rssicon;
$rss_url = $request->getURLtoSelf(array('format' => 'rss'));
+ if (empty($rssicon))
+ $rssicon = 'images/rss.png';
return Element('a', array('href' => $rss_url),
! Element('img', array('src' => DataURL($rssicon),
'alt' => _("RSS available"),
'class' => 'rssicon')));
|