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:
@@ -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'].")";
|
||||
|
||||
|
Reference in New Issue
Block a user