From: Reini U. <ru...@us...> - 2006-03-19 14:26:33
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8917/lib/plugin Modified Files: Calendar.php RecentChanges.php Log Message: sf.net patch by Matt Brown: Add rel=nofollow to more actions Index: Calendar.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/Calendar.php,v retrieving revision 1.30 retrieving revision 1.31 diff -u -2 -b -p -d -r1.30 -r1.31 --- Calendar.php 2 Apr 2005 03:05:44 -0000 1.30 +++ Calendar.php 19 Mar 2006 14:26:29 -0000 1.31 @@ -164,4 +164,5 @@ extends WikiPlugin else { $date = HTML::a(array('class' => 'cal-hide', + 'rel' => 'nofollow', 'href' => WikiURL($page_for_date, array('action' => 'edit')), @@ -240,4 +241,7 @@ extends WikiPlugin // $Log$ +// Revision 1.31 2006/03/19 14:26:29 rurban +// sf.net patch by Matt Brown: Add rel=nofollow to more actions +// // Revision 1.30 2005/04/02 03:05:44 uckelman // Removed & from vars passed by reference (not needed, causes PHP to complain). Index: RecentChanges.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentChanges.php,v retrieving revision 1.108 retrieving revision 1.109 diff -u -2 -b -p -d -r1.108 -r1.109 --- RecentChanges.php 1 Apr 2005 16:09:35 -0000 1.108 +++ RecentChanges.php 19 Mar 2006 14:26:29 -0000 1.109 @@ -126,5 +126,7 @@ extends _RecentChanges_Formatter function diffLink ($rev) { global $WikiTheme; - return $WikiTheme->makeButton(_("(diff)"), $this->diffURL($rev), 'wiki-rc-action'); + $button = $WikiTheme->makeButton(_("(diff)"), $this->diffURL($rev), 'wiki-rc-action'); + $button->setAttr('rel', 'nofollow'); + return $button; } @@ -416,4 +418,5 @@ extends _RecentChanges_HtmlFormatter $linkurl = parent::diffLink($rev); $linkurl->setAttr('target', '_content'); + $linkurl->setAttr('rel', 'nofollow'); // FIXME: Smelly hack to get smaller diff buttons in sidebar $linkurl = new RawXML(str_replace('<img ', '<img style="height:2ex" ', asXML($linkurl))); @@ -925,4 +928,7 @@ class DayButtonBar extends HtmlElement { // $Log$ +// Revision 1.109 2006/03/19 14:26:29 rurban +// sf.net patch by Matt Brown: Add rel=nofollow to more actions +// // Revision 1.108 2005/04/01 16:09:35 rurban // fix defaults in RecentChanges plugins: e.g. invalid pagenames for PageHistory |