Fixes multilingual offline message
authorMatthias Schmidt <gravatronics@live.com>
Wed, 5 Jun 2013 15:34:10 +0000 (17:34 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 5 Jun 2013 15:34:10 +0000 (17:34 +0200)
com.woltlab.wcf/templates/offline.tpl
com.woltlab.wcf/templates/userNotice.tpl

index 3f47d84390994f69ca2bff4cd273271b3ccb7f37..8c317e3c1f4dc8b2d709f958c1d011d184b3c7dc 100644 (file)
@@ -8,11 +8,11 @@
 
 <body id="tpl{$templateName|ucfirst}">
 
-{include file='header'}
+{include file='header' skipBreadcrumbs=true}
 
 <div class="warning">
        <p><strong>{lang}wcf.page.offline{/lang}</strong></p>
-       <p>{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE}{else}{@OFFLINE_MESSAGE|htmlspecialchars|nl2br}{/if}</p>
+       <p>{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE|language}{else}{@OFFLINE_MESSAGE|language|htmlspecialchars|nl2br}{/if}</p>
 </div>
 
 {include file='footer'}
index 9d12305ebe7bfe94da513a987333be8ea232d40c..ff65074fadcf851803b77124d7565923a893621b 100644 (file)
@@ -2,7 +2,7 @@
        {if OFFLINE && $__wcf->session->getPermission('admin.general.canViewPageDuringOfflineMode')}
                <div class="warning">
                        <p><strong>{lang}wcf.page.offline{/lang}</strong></p>
-                       <p>{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE}{else}{@OFFLINE_MESSAGE|htmlspecialchars|nl2br}{/if}</p>
+                       <p>{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE|language}{else}{@OFFLINE_MESSAGE|language|htmlspecialchars|nl2br}{/if}</p>
                </div>
        {/if}