1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 12:11:55 +02:00

Merge pull request #2573 from yesszus/patch-3

Issue #6 admin.php
This commit is contained in:
Cameron 2017-04-23 17:00:07 -07:00 committed by GitHub
commit 38f1a437a4
2 changed files with 6 additions and 2 deletions

View File

@ -577,11 +577,13 @@ TMPO;
if(@unlink($file))
{
$mes->addSuccess("Deleted ".$file);
$message = e107::getParser()->lanVars(LAN_UI_FILE_DELETED, array('x'=>$file));
$mes->addSuccess($message);
}
else
{
$mes->addError("Unable to delete ".$file.". Please remove the file manually.");
$message = e107::getParser()->lanVars(LAN_UI_FILE_DELETED_FAILED, array('x'=>$file));
$mes->addError($message);
}
}

View File

@ -471,6 +471,8 @@ define("LAN_UI_DELETE_WARNING", "You are about to delete [x] records. Please con
define("LAN_UI_BATCH_CREATELINK", "Create 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!");
define("LAN_UI_FILE_DELETED_FAILED", "Unable to delete [x]! Please remove the file manually.");
define("LAN_UI_BATCH_EXPORT", "Export");
define("LAN_UI_USING_DATABASE_TABLE", "Using [x] database table");