diff --git a/src/application/controller/api/post/get.php b/src/application/controller/api/post/get.php index 16ab822..b2790e9 100644 --- a/src/application/controller/api/post/get.php +++ b/src/application/controller/api/post/get.php @@ -43,16 +43,16 @@ if (isset($_SESSION['userName'])) { } $reTwist = [ - 'message' => implode('', $reTwists), - 'time' => Localization::time($post['userpost']['rt']['time']), + 'message' => Format::post(implode('', $reTwists)), + 'time' => Format::time($post['userpost']['rt']['time']), 'userName' => $post['userpost']['rt']['n'], 'reTwist' => $reTwist, ]; } $posts[] = [ - 'message' => implode('', $messages), - 'time' => Localization::time($post['userpost']['time']), + 'message' => Format::post(implode('', $messages)), + 'time' => Format::time($post['userpost']['time']), 'userName' => $post['userpost']['n'], 'reTwist' => $reTwist, ]; diff --git a/src/bootstrap.php b/src/bootstrap.php index d45674b..d5073a7 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -12,7 +12,7 @@ require(PROJECT_DIR . '/system/twister.php'); require(PROJECT_DIR . '/system/icon.php'); require(PROJECT_DIR . '/system/helper/filter.php'); require(PROJECT_DIR . '/system/helper/valid.php'); -require(PROJECT_DIR . '/system/helper/localization.php'); +require(PROJECT_DIR . '/system/helper/format.php'); // Init libraries $_twister = new Twister( diff --git a/src/system/helper/localization.php b/src/system/helper/format.php similarity index 91% rename from src/system/helper/localization.php rename to src/system/helper/format.php index f9ca812..f87c630 100644 --- a/src/system/helper/localization.php +++ b/src/system/helper/format.php @@ -1,6 +1,6 @@