mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Bugfix: Custom-Pages wasn't saving admin/date preference
This commit is contained in:
@@ -266,6 +266,7 @@ class page
|
|||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
$ns = e107::getRender();
|
||||||
|
|
||||||
|
|
||||||
$edit = ($sub_action == 'edit');
|
$edit = ($sub_action == 'edit');
|
||||||
@@ -472,7 +473,7 @@ class page
|
|||||||
</form>
|
</form>
|
||||||
";
|
";
|
||||||
|
|
||||||
$e107->ns->tablerender($caption, $text);
|
$ns->tablerender($caption, $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -485,8 +486,7 @@ class page
|
|||||||
|
|
||||||
$page_title = $tp->toDB($_POST['page_title']);
|
$page_title = $tp->toDB($_POST['page_title']);
|
||||||
$page_text = $tp->toDB($_POST['data']);
|
$page_text = $tp->toDB($_POST['data']);
|
||||||
// $pauthor = ($_POST['page_display_authordate_flag'] ? USERID : 0); // this check should be done in the front-end.
|
$pauthor = ($_POST['page_display_authordate_flag'] ? USERID : 0); // Ideally, this check should be done in the front-end.
|
||||||
$pauthor = USERID;
|
|
||||||
$update = 0; // Make sure some updates happen
|
$update = 0; // Make sure some updates happen
|
||||||
|
|
||||||
|
|
||||||
@@ -615,6 +615,8 @@ class page
|
|||||||
function optionsPage()
|
function optionsPage()
|
||||||
{
|
{
|
||||||
global $e107, $pref, $frm, $emessage;
|
global $e107, $pref, $frm, $emessage;
|
||||||
|
|
||||||
|
$ns = e107::getRender();
|
||||||
|
|
||||||
if(!isset($pref['pageCookieExpire'])) $pref['pageCookieExpire'] = 84600;
|
if(!isset($pref['pageCookieExpire'])) $pref['pageCookieExpire'] = 84600;
|
||||||
|
|
||||||
@@ -651,7 +653,7 @@ class page
|
|||||||
</form>
|
</form>
|
||||||
";
|
";
|
||||||
|
|
||||||
$e107->ns->tablerender(LAN_OPTIONS, $emessage->render().$text);
|
$ns->tablerender(LAN_OPTIONS, $emessage->render().$text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user