Minahito
minah****@users*****
2006年 8月 3日 (木) 02:45:00 JST
Index: xoops2jp/html/modules/base/admin/css.php diff -u xoops2jp/html/modules/base/admin/css.php:1.1.2.6 xoops2jp/html/modules/base/admin/css.php:1.1.2.7 --- xoops2jp/html/modules/base/admin/css.php:1.1.2.6 Fri Jun 23 10:28:10 2006 +++ xoops2jp/html/modules/base/admin/css.php Thu Aug 3 02:45:00 2006 @@ -3,6 +3,22 @@ require_once "../../../mainfile.php"; require_once XOOPS_ROOT_PATH . "/header.php"; +function Legacy_modifier_css_theme($string) +{ + $infoArr = Legacy_get_ovveride_file($string, null, true); + + if ($infoArr['theme'] != null && $infoArr['dirname'] != null) { + return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/modules/" . $infoArr['dirname'] . "/" . $string; + } + elseif ($infoArr['theme'] != null) { + return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/" . $string; + } + elseif ($infoArr['dirname'] != null) { + return XOOPS_MODULE_URL . "/" . $infoArr['dirname'] . "/admin/templates/" . $string; + } + + return LEGACY_ADMIN_RENDER_FALLBACK_URL . "/" . $string; +} $theme = isset($_GET['theme']) ? trim($_GET['theme']) : null; $dirname = isset($_GET['dirname']) ? trim($_GET['dirname']) : null; @@ -12,7 +28,9 @@ exit(); } -$smarty = new Legacy_AdminSmarty(); +$smarty =& new Legacy_AdminSmarty(); +$smarty->register_modifier("theme", "Legacy_modifier_css_theme"); +$smarty->register_function("stylesheet", "Legacy_function_stylesheet"); if ($theme != null && $dirname != null) { $path = XOOPS_THEME_PATH . "/${theme}/modules/${dirname}";