Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory usw-pr-cvs1:/tmp/cvs-serv15438
Modified Files:
RecentChanges.php
Log Message:
Fix error msg: Use of undefined constant HomePage - assumed 'HomePage'.
For now avoid links inside summary in the mozilla sidebar, they would target the sidebar instead of the main frame.
Index: RecentChanges.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentChanges.php,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -2 -b -p -d -r1.66 -r1.67
--- RecentChanges.php 20 Aug 2002 18:26:12 -0000 1.66
+++ RecentChanges.php 12 Oct 2002 09:47:05 -0000 1.67
@@ -345,5 +345,5 @@ extends _RecentChanges_HtmlFormatter
'width' => 32
));
- $linkurl = WikiLink(HomePage, false, $img);
+ $linkurl = WikiLink(HOME_PAGE, false, $img);
$linkurl->setAttr('target', '_content');
return $linkurl;
@@ -374,4 +374,19 @@ extends _RecentChanges_HtmlFormatter
return $linkurl;
}
+ // Overriding summaryAsHTML, because there is no way yet to
+ // return summary as transformed text with
+ // links setAttr('target', '_content') in Mozilla sidebar.
+ // So for now don't create clickable links inside summary
+ // in the sidebar, or else they target the sidebar and not the
+ // main content window.
+ function summaryAsHTML ($rev) {
+ if ( !($summary = $this->summary($rev)) )
+ return '';
+ return HTML::strong(array('class' => 'wiki-summary'),
+ "[",
+ /*TransformLinks(*/$summary,/* $rev->get('markup')),*/
+ "]");
+ }
+
function format ($changes) {
|