mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Fixes #661- welcome message auto-shown on front page only
This commit is contained in:
parent
2379ca154b
commit
39e3e6ae97
@ -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/
|
||||
}
|
||||
|
||||
// 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}");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user