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

Plugin repair-mode correction.

This commit is contained in:
Cameron
2017-04-03 15:55:37 -07:00
parent 7d5214a395
commit 61b43267bb

View File

@@ -418,15 +418,18 @@ class plugin_ui extends e_admin_ui
{ {
$id = $this->getId(); $id = $this->getId();
if(!e107::isInstalled($id)) if(!is_dir(e_PLUGIN.$id))
{ {
e107::getMessage()->addError("Bad Link");
return false; return false;
} }
e107::getSingleton('e107plugin')->refresh($id); e107::getSingleton('e107plugin')->refresh($id);
e107::getLog()->add('PLUGMAN_04', $id, E_LOG_INFORMATIVE, ''); e107::getLog()->add('PLUGMAN_04', $id, E_LOG_INFORMATIVE, '');
$this->redirectAction('list'); e107::getMessage()->addSuccess("Repair Complete (".$id.")"); // Repair Complete ([x])
$this->redirectAction('list');
} }