1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Issue #4299 PHP8 error

This commit is contained in:
Cameron 2021-03-09 06:27:05 -08:00
parent 67b35ad088
commit 5735b93d30
2 changed files with 8 additions and 6 deletions

View File

@ -5548,19 +5548,19 @@ class e_admin_ui extends e_admin_controller_ui
if($res !== FALSE)
{
e107::getMessage()->addSuccess(LAN_CREATED. ': ' .LAN_SITELINK. ': ' .($name ? $name : 'n/a'));
e107::getMessage()->addSuccess(LAN_CREATED. ': ' .LAN_NAVIGATION. ': ' .($name ? $name : 'n/a'));
$scount++;
}
else
{
if($sql->getLastErrorNumber())
{
e107::getMessage()->addError(LAN_CREATED_FAILED. ': ' .LAN_SITELINK. ': ' .$name. ': ' .LAN_SQL_ERROR);
e107::getMessage()->addError(LAN_CREATED_FAILED. ': ' .LAN_NAVIGATION. ': ' .$name. ': ' .LAN_SQL_ERROR);
e107::getMessage()->addDebug('SQL Link Creation Error #'.$sql->getLastErrorNumber().': '.$sql->getLastErrorText());
}
else
{
e107::getMessage()->addError(LAN_CREATED_FAILED. ': ' .LAN_SITELINK. ': ' .$name. ': ' .LAN_UNKNOWN_ERROR);//Unknown Error
e107::getMessage()->addError(LAN_CREATED_FAILED. ': ' .LAN_NAVIGATION. ': ' .$name. ': ' .LAN_UNKNOWN_ERROR);//Unknown Error
}
}
@ -5568,8 +5568,8 @@ class e_admin_ui extends e_admin_controller_ui
if($scount > 0)
{
e107::getMessage()->addSuccess(LAN_CREATED. ' (' .$scount. ') ' .ADLAN_138);
e107::getMessage()->addSuccess("<a class='btn btn-small btn-primary' href='".e_ADMIN_ABS."links.php?searchquery=&filter_options=link_category__255'>".LAN_CONFIGURE. ' ' .ADLAN_138. '</a>');
e107::getMessage()->addSuccess(LAN_CREATED. ' (' .$scount. ') ' .LAN_NAVIGATION_LINKS);
e107::getMessage()->addSuccess("<a class='btn btn-small btn-primary' href='".e_ADMIN_ABS."links.php?searchquery=&filter_options=link_category__255'>".LAN_CONFIGURE. ' ' .LAN_NAVIGATION. '</a>');
return $scount;
}

View File

@ -480,7 +480,7 @@ define("LAN_UI_CREATE_LABEL", "Create new record");
define("LAN_UI_PREF_LABEL", "Settings");
define("LAN_UI_DELETE_LABEL", "Confirm Delete");
define("LAN_UI_DELETE_WARNING", "You are about to delete [x] records. Please confirm to continue.");
define("LAN_UI_BATCH_CREATELINK", "Create Link");
define("LAN_UI_BATCH_CREATELINK", "Create Navigation Link");
define("LAN_UI_DELETED", "[x] record(s) successfully deleted!");
define("LAN_UI_DELETED_FAILED", "[x] records not found and not deleted!");
define("LAN_UI_FILE_DELETED", "[x] file successfully deleted!");
@ -580,3 +580,5 @@ define("LAN_ROBOTS_NOARCHIVE", "Prevent cached copies of this item from appearin
define("LAN_ROBOTS_NOIMAGE", "Prevent search engines from indexing images of this item.");
define("LAN_NAVIGATION", "Navigation");
define("LAN_NAVIGATION_LINKS", "Navigation Links");