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:
@@ -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}");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user