mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Correct library cache file name.
This commit is contained in:
@@ -1824,7 +1824,7 @@ class e107
|
|||||||
*
|
*
|
||||||
* @return e_library_manager
|
* @return e_library_manager
|
||||||
*/
|
*/
|
||||||
private static function getLibrary()
|
public static function getLibrary()
|
||||||
{
|
{
|
||||||
return self::getSingleton('e_library_manager', true);
|
return self::getSingleton('e_library_manager', true);
|
||||||
}
|
}
|
||||||
|
@@ -4514,7 +4514,7 @@ return;
|
|||||||
/**
|
/**
|
||||||
* Filters/Validates using the PHP5 filter_var() method.
|
* Filters/Validates using the PHP5 filter_var() method.
|
||||||
* @param $text
|
* @param $text
|
||||||
* @param $type string str|int|email|url|w|wds
|
* @param $type string str|int|email|url|w|wds|file
|
||||||
* @return string | boolean | array
|
* @return string | boolean | array
|
||||||
*/
|
*/
|
||||||
function filter($text, $type='str',$validate=false)
|
function filter($text, $type='str',$validate=false)
|
||||||
|
@@ -832,7 +832,7 @@ class e_library_manager
|
|||||||
if(!isset($loaded[$name]))
|
if(!isset($loaded[$name]))
|
||||||
{
|
{
|
||||||
$cache = e107::getCache();
|
$cache = e107::getCache();
|
||||||
$cacheID = 'library_manager_' . md5($name);
|
$cacheID = 'Library_' . e107::getParser()->filter($name,'file');
|
||||||
$cached = $cache->retrieve($cacheID, false, true, true);
|
$cached = $cache->retrieve($cacheID, false, true, true);
|
||||||
|
|
||||||
if($cached)
|
if($cached)
|
||||||
@@ -843,8 +843,8 @@ class e_library_manager
|
|||||||
if(!varset($library, false))
|
if(!varset($library, false))
|
||||||
{
|
{
|
||||||
$library = $this->detect($name);
|
$library = $this->detect($name);
|
||||||
$cacheData = serialize($library);
|
$cacheData = e107::serialize($library,'json');
|
||||||
$cache->set($cacheID, $cacheData, true, false, true);
|
$cache->set($cacheID, $cacheData, true, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exit early if the library was not found.
|
// Exit early if the library was not found.
|
||||||
|
Reference in New Issue
Block a user