Update of /cvsroot/phpwiki/phpwiki/themes/Portland
In directory usw-pr-cvs1:/tmp/cvs-serv23647
Modified Files:
themeinfo.php
Log Message:
Updated themes to work properly with RecentChanges?format=sidebar
Index: themeinfo.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/themes/Portland/themeinfo.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -2 -b -p -d -r1.6 -r1.7
--- themeinfo.php 8 Feb 2002 22:03:03 -0000 1.6
+++ themeinfo.php 8 Mar 2002 20:31:13 -0000 1.7
@@ -26,5 +26,5 @@ class Theme_Portland extends Theme {
function getRecentChangesFormatter ($format) {
include_once($this->file('lib/RecentChanges.php'));
- if (preg_match('/^rss/', $format))
+ if (preg_match('/^rss|^sidebar/', $format))
return false; // use default
return '_Portland_RecentChanges_Formatter';
@@ -33,5 +33,5 @@ class Theme_Portland extends Theme {
function getPageHistoryFormatter ($format) {
include_once($this->file('lib/RecentChanges.php'));
- if (preg_match('/^rss/', $format))
+ if (preg_match('/^rss|^sidebar/', $format))
return false; // use default
return '_Portland_PageHistory_Formatter';
|