1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 01:30:32 +02:00

Issue #4918 - Undefined constants cleanup.

This commit is contained in:
Cameron
2022-12-10 07:06:47 -08:00
parent 60d9c29af3
commit d960829532
30 changed files with 66 additions and 104 deletions

View File

@@ -201,8 +201,8 @@ class news {
if($sql->getLastErrorNumber())
{
$error = true;
$emessage->add(LAN_NEWS_5, E_MESSAGE_ERROR, $smessages);
$message = "<strong>".LAN_NEWS_5."</strong>";
$emessage->add(defset('LAN_UPDATED_FAILED', "Update Failed"), E_MESSAGE_ERROR, $smessages);
$message = "<strong>".defset('LAN_UPDATED_FAILED', "Update Failed")."</strong>";
}
else
{
@@ -228,7 +228,7 @@ class news {
if ($data['data']['news_id'])
{
$data['news_id'] = $news['news_id'];
$message = LAN_NEWS_6;
$message = defset('LAN_SAVED', "Saved");
$emessage->add(LAN_CREATED, E_MESSAGE_SUCCESS, $smessages);
e107::getCache()->clear('news.php');
@@ -244,7 +244,7 @@ class news {
else
{
$error = true;
$message = "<strong>".LAN_NEWS_7."</strong>";
$message = "<strong>".defset('LAN_CREATED_FAILED')."</strong>";
$emessage->add(LAN_UPDATED, E_MESSAGE_ERROR, $smessages);
}
}