From bd61f2082159bbef64961a3d7862e071fae4d562 Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 24 Oct 2008 14:25:18 +0000 Subject: [PATCH] Do not display a link for a deleted page, just the page name git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6335 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/RecentChanges.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/plugin/RecentChanges.php b/lib/plugin/RecentChanges.php index ecb6efde2..cde716d78 100644 --- a/lib/plugin/RecentChanges.php +++ b/lib/plugin/RecentChanges.php @@ -459,16 +459,23 @@ extends _RecentChanges_Formatter if ($args['historylinks']) $line->pushContent($this->historyLink($rev), ' '); + // Do not display a link for a deleted page, just the page name + if ($rev->hasDefaultContents()) { + $linkorname = $rev->_pagename; + } else { + $linkorname = $this->pageLink($rev); + } + if (isa($WikiTheme, 'WikiTheme_MonoBook')) { $line->pushContent( $args['historylinks'] ? '' : $this->historyLink($rev), - ' . . ', $this->pageLink($rev), '; ', + ' . . ', $linkorname, '; ', $time, ' . . ', $this->authorLink($rev),' ', $this->authorContribs($rev),' ', $this->summaryAsHTML($rev)); } else { - $line->pushContent($this->pageLink($rev), ' ', + $line->pushContent($linkorname, ' ', $time, ' ', $this->summaryAsHTML($rev), ' ... ', -- 2.45.0