From ba35cd8a6d57f80a46a8c3f9afab56dff8471c28 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 16 Jan 2020 19:22:54 +0100 Subject: [PATCH] Incorrect link to the version history of articles --- com.woltlab.wcf/templates/articleAdd.tpl | 2 +- wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php | 2 +- wcfsetup/install/lang/de.xml | 2 +- wcfsetup/install/lang/en.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com.woltlab.wcf/templates/articleAdd.tpl b/com.woltlab.wcf/templates/articleAdd.tpl index cb487193e7..e026cc5c15 100644 --- a/com.woltlab.wcf/templates/articleAdd.tpl +++ b/com.woltlab.wcf/templates/articleAdd.tpl @@ -98,7 +98,7 @@ {if $action == 'edit'}

isDeleted} style="display: none;"{/if}>{lang}wcf.acp.article.trash.notice{/lang}

- {if $lastVersion}

{lang}wcf.acp.article.lastVersion{/lang}

{/if} + {if $lastVersion && $__wcf->session->getPermission('admin.general.canUseAcp')}

{lang}wcf.acp.article.lastVersion{/lang}

{/if} {/if}
diff --git a/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php index 42d3313b9e..eca9b60ded 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php @@ -191,7 +191,7 @@ class ArticleEditForm extends ArticleAddForm { 'article' => $this->article, 'defaultLanguageID' => LanguageFactory::getInstance()->getDefaultLanguageID(), 'languages' => LanguageFactory::getInstance()->getLanguages(), - 'lastVersion' => VersionTracker::getInstance()->getLastVersion('com.woltlab.wcf.article', $this->articleID) + 'lastVersion' => VersionTracker::getInstance()->getLastVersion('com.woltlab.wcf.article', $this->articleID), ]); } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 444e22f067..8260f92266 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -109,7 +109,7 @@ {$article->getTitle()}{else}diesen Artikel{/if} wirklich in den Papierkorb verschieben?]]> - articleID}{/link}">vorherige Versionen dieses Artikels, die letzte Änderung erfolgte durch {$lastVersion->username} ({@$lastVersion->time|time}).]]> + articleID isACP=true}{/link}">vorherige Versionen dieses Artikels, die letzte Änderung erfolgte durch {$lastVersion->username} ({@$lastVersion->time|time}).]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 8b6cc3c1ab..0f85c7137b 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -109,7 +109,7 @@ {$article->getTitle()}{else}this article{/if} to the trash bin?]]> - articleID}{/link}">previous versions of this article, the last change was by {$lastVersion->username} ({@$lastVersion->time|time}).]]> + articleID isACP=true}{/link}">previous versions of this article, the last change was by {$lastVersion->username} ({@$lastVersion->time|time}).]]> -- 2.20.1