Fixed page preview button
authorMarcel Werk <burntime@woltlab.com>
Wed, 20 Apr 2016 15:24:23 +0000 (17:24 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 20 Apr 2016 15:25:20 +0000 (17:25 +0200)
wcfsetup/install/files/acp/templates/pageAdd.tpl

index 7aa92a18093868201c3ccf84bd59ac6586c923d4..c37c5fa3081ccfec29813f6dd4ccf8f28757ad81 100644 (file)
@@ -31,7 +31,7 @@
        
        <nav class="contentHeaderNavigation">
                <ul>
-                       {if !$page->requireObjectID}
+                       {if $action == 'edit' && !$page->requireObjectID}
                                <li><a href="{$page->getLink()}" class="button"><span class="icon icon16 fa-search"></span> <span>{lang}wcf.acp.page.button.viewPage{/lang}</span></a></li>
                        {/if}
                        <li><a href="{link controller='PageList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.cms.page.list{/lang}</span></a></li>