From 383af8109531a351f54715c9f2e540fcc5a0d5d3 Mon Sep 17 00:00:00 2001 From: Brad Shuttleworth Date: Tue, 28 Feb 2006 10:10:51 +0000 Subject: [PATCH] fix for KTS-517 --- help.php | 5 +++-- templates/ktcore/help_with_edit.smarty | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/help.php b/help.php index 512db4a..fa2a843 100644 --- a/help.php +++ b/help.php @@ -82,10 +82,10 @@ class HelpDispatcher extends KTStandardDispatcher { if (!$can_edit) { if (!PEAR::isError($oReplacementHelp)) { $this->oPage->setTitle($oReplacementHelp->getTitle()); - return $oReplacementHelp->getDescription(); + //return $oReplacementHelp->getDescription(); } elseif ($aHelpInfo != false) { $this->oPage->setTitle($aHelpInfo['title']); - return $aHelpInfo['body']; + //return $aHelpInfo['body']; } else { $this->oPage->setTitle(_('Invalid help location specified.')); $this->oPage->addError(_('Invalid help location specified.')); @@ -109,6 +109,7 @@ class HelpDispatcher extends KTStandardDispatcher { "help_body" => $aHelpInfo['body'], "target_name" => $_SERVER['PATH_INFO'], "back_key" => $sBackKey, + 'can_edit' => $can_edit, ); return $oTemplate->render($aTemplateData); } diff --git a/templates/ktcore/help_with_edit.smarty b/templates/ktcore/help_with_edit.smarty index 6c02040..a35d8ee 100644 --- a/templates/ktcore/help_with_edit.smarty +++ b/templates/ktcore/help_with_edit.smarty @@ -11,9 +11,9 @@ {/if}
-

{i18n}Edit this help page.{/i18n}{i18n}Edit this help page.{/i18n}
+

{if $can_edit}{i18n}Edit this help page.{/i18n}{i18n}Edit this help page.{/i18n}
{/if} {i18n}Return to where you came from.{/i18n}{i18n}Return to where you came from.{/i18n}

+left; padding-right: 0.5em; clear: left; ">{i18n}Return to where you came from.{/i18n}{i18n}Return to where you came from.{/i18n}

\ No newline at end of file -- libgit2 0.21.4