SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Carsten K. <car...@us...> - 2002年10月12日 09:47:08
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) {
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /