mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 01:11:28 +02:00
Fix for forgotten password page layout in membersonly mode.
This commit is contained in:
@@ -175,7 +175,7 @@ class user_shortcodes extends e_shortcode
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return $USER_LEVEL = $ldata[1];
|
return $ldata[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -93,8 +93,8 @@ $FPW_TEMPLATE['form'] = '
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
$FPW_TEMPLATE['header'] = '';
|
$FPW_TEMPLATE['header'] = '<div id="fpw-page" class="container">';
|
||||||
$FPW_TEMPLATE['footer'] = '';
|
$FPW_TEMPLATE['footer'] = '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -3942,7 +3942,7 @@ class e_parser
|
|||||||
*/
|
*/
|
||||||
public function toDate($datestamp = null, $format='short')
|
public function toDate($datestamp = null, $format='short')
|
||||||
{
|
{
|
||||||
if(!is_numeric($datestamp)){ return; }
|
if(!is_numeric($datestamp)){ return null; }
|
||||||
|
|
||||||
return '<span data-livestamp="'.$datestamp.'">'.e107::getDate()->convert($datestamp, $format).'</span>';
|
return '<span data-livestamp="'.$datestamp.'">'.e107::getDate()->convert($datestamp, $format).'</span>';
|
||||||
}
|
}
|
||||||
|
12
fpw.php
12
fpw.php
@@ -130,9 +130,15 @@ if ($pref['membersonly_enabled'])
|
|||||||
{
|
{
|
||||||
require_once (e107::coreTemplatePath('fpw')); //correct way to load a core template.
|
require_once (e107::coreTemplatePath('fpw')); //correct way to load a core template.
|
||||||
}
|
}
|
||||||
|
|
||||||
$HEADER = $tp->simpleParse($FPW_TABLE_HEADER, $sc);
|
define('e_IFRAME', true);
|
||||||
$FOOTER = $tp->simpleParse($FPW_TABLE_FOOTER, $sc);
|
$HEAD = $tp->simpleParse($FPW_TABLE_HEADER, $sc);
|
||||||
|
$FOOT = $tp->simpleParse($FPW_TABLE_FOOTER, $sc);
|
||||||
|
|
||||||
|
define('e_IFRAME_HEADER', $HEAD);
|
||||||
|
define('e_IFRAME_FOOTER' , $FOOT);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$user_info = e107::getUserSession();
|
$user_info = e107::getUserSession();
|
||||||
|
Reference in New Issue
Block a user