Skip to content

Commit

Permalink
Fix #2187 undefined lang code in page.admin.controller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kijin committed Sep 30, 2023
1 parent 9b5160e commit a5e0b2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion classes/object/Object.class.php
Expand Up @@ -148,7 +148,7 @@ public function getHttpStatusCode()
*/
public function setMessage($message = 'success', $type = null)
{
$this->message = lang($message);
$this->message = lang((string)$message);
if($type !== null)
{
$this->setMessageType($type);
Expand Down
1 change: 0 additions & 1 deletion modules/page/page.admin.controller.php
Expand Up @@ -185,7 +185,6 @@ function procPageAdminInsertContent()
$this->add("module_srl", $module_info->module_srl);
$this->add("page", Context::get('page'));
$this->add("mid", $module_info->mid);
$this->setMessage($msg_code);

// Create cache file
$this->procPageAdminRemoveWidgetCache();
Expand Down

0 comments on commit a5e0b2c

Please sign in to comment.