1
0
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:
Cameron
2017-01-27 10:20:25 -08:00
parent fb63e25c59
commit 22d20baba8
2 changed files with 5 additions and 3 deletions

View File

@@ -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();

View File

@@ -15,7 +15,7 @@
/** /**
* Class bootstrap3_library. * Class bootstrap3_library.
*/ */
class bootstrap3_library class theme_library
{ {
/** /**