Fix in explode in Basic class
This commit is contained in:
@@ -37,7 +37,7 @@ if (!isset($CONTENT_INCLUDE)) {
|
||||
$FORM_NAME = !isset($FORM_NAME) || !$FORM_NAME ? str_replace(".php", "", $cms->page_name) : $FORM_NAME;
|
||||
// set local page title
|
||||
$L_TITLE = ucfirst(str_replace('_', ' ', $cms->getPageName(1))).(defined(G_TITLE) ? ' - '.G_TITLE : '');
|
||||
// strip tpl and replace it with inc
|
||||
// strip tpl and replace it with php
|
||||
// php include file per page
|
||||
$cms->INC_TEMPLATE_NAME = str_replace(".tpl", ".php", $CONTENT_INCLUDE);
|
||||
// javascript include per page
|
||||
|
||||
@@ -1526,7 +1526,7 @@ class Basic
|
||||
// DESC : a simple wrapper for the date format
|
||||
public static function dateStringFormat($timestamp, bool $show_micro = true): string
|
||||
{
|
||||
list ($timestamp, $ms) = explode('.', round($timestamp, 4));
|
||||
list ($timestamp, $ms) = explode('.', (string)round($timestamp, 4));
|
||||
$string = date("Y-m-d H:i:s", $timestamp);
|
||||
if ($show_micro) {
|
||||
$string .= ' '.$ms.'ms';
|
||||
|
||||
Reference in New Issue
Block a user