1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 02:24:08 +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

@@ -845,7 +845,7 @@ final class e_core_pref extends e_pref
parent::__construct($pref_id, $pref_alias);
if($load && $pref_id)
{
$this->load();
$this->load($pref_id, $load);
}