mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Library config name consistency fix.
This commit is contained in:
@@ -1007,14 +1007,16 @@ class e_library_manager
|
|||||||
$siteTheme = e107::getPref('sitetheme');
|
$siteTheme = e107::getPref('sitetheme');
|
||||||
$adminTheme = e107::getPref('admintheme');
|
$adminTheme = e107::getPref('admintheme');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
foreach(array($siteTheme, $adminTheme) as $theme)
|
foreach(array($siteTheme, $adminTheme) as $theme)
|
||||||
{
|
{
|
||||||
if(is_readable(e_THEME . $theme . '/theme_library.php')) // we don't use e_XXXX for themes.
|
if(is_readable(e_THEME . $theme . '/theme_library.php')) // we don't use e_XXXX for themes.
|
||||||
{
|
{
|
||||||
e107_require_once(e_THEME . $theme . '/theme_library.php');
|
e107_require_once(e_THEME . $theme . '/theme_library.php');
|
||||||
|
|
||||||
$className = $theme . '_library';
|
$className = 'theme_library';
|
||||||
if(class_exists($className))
|
if(class_exists($className)) //@todo replace with e107::callMethod();
|
||||||
{
|
{
|
||||||
$addonClass = new $className();
|
$addonClass = new $className();
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
/**
|
/**
|
||||||
* Class bootstrap3_library.
|
* Class bootstrap3_library.
|
||||||
*/
|
*/
|
||||||
class bootstrap3_library
|
class theme_library
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user