1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Fixes #661- welcome message auto-shown on front page only

This commit is contained in:
SecretR
2014-07-24 19:08:55 +03:00
parent 2379ca154b
commit 39e3e6ae97

View File

@@ -735,8 +735,12 @@ if ($e107_popup != 1) {
echo "<div id='uiAlert' class='notifications center'></div>"; // Popup Alert Message holder. @see http://nijikokun.github.io/bootstrap-notify/ echo "<div id='uiAlert' class='notifications center'></div>"; // Popup Alert Message holder. @see http://nijikokun.github.io/bootstrap-notify/
} }
// Display Welcome Message when old method activated. /**
if(strstr($HEADER,"{WMESSAGE")===false && strstr($FOOTER,"{WMESSAGE")===false) // Auto-detection to override old pref. * Display Welcome Message when old method activated.
* fix - only when e_FRONTPAGE set to true
* @see \core_index_index_controller\actionIndex
*/
if(deftrue('e_FRONTPAGE') && strstr($HEADER,"{WMESSAGE")===false && strstr($FOOTER,"{WMESSAGE")===false) // Auto-detection to override old pref.
{ {
echo e107::getParser()->parseTemplate("{WMESSAGE}"); echo e107::getParser()->parseTemplate("{WMESSAGE}");
} }