1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Removed problematic cache from e107plugin::getinfo()

Every known usage of e107plugin::getinfo() requires up-to-date knowledge
of the involved plugin's record in the database.

For this reason, I removed the object scope global state caching of
results from e107plugin::getinfo()

Also changed the method name to a more descriptive getPluginRecord()

Also made e107plugin::getPluginRecord() static
This commit is contained in:
Nick Liu
2018-07-21 12:08:00 -05:00
parent 91b49cd293
commit 89e28e38c5
3 changed files with 20 additions and 31 deletions

View File

@@ -631,7 +631,7 @@ class plugin_ui extends e_admin_ui
$eplug_addons = $plugin -> getAddons($eplug_folder);
$info = $plugin->getinfo($this->id);
$info = e107plugin::getPluginRecord($this->id);
$name = deftrue($info['plugin_name'],$info['plugin_name']). " v".$eplug_version. "({e_PLUGIN}".$info['plugin_path'].")";