Changeset 3152
- Timestamp:
- 08/19/08 23:00:33 (3 months ago)
- Files:
-
- trunk/utils/copix/core/CopixUrl.class.php (modified) (2 diffs)
- trunk/utils/copix/core/shortcuts.lib.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/utils/copix/core/CopixUrl.class.php
r2870 r3152 875 875 * @return string le $ressourcePath complet en fonction des thèmes 876 876 */ 877 public static function getResource ($pResourcePath ){877 public static function getResource ($pResourcePath, $pTheme = null){ 878 878 static $calculated = array (); 879 879 880 $theme = CopixTpl::getTheme ();880 $theme = ($pTheme === null) ? CopixTpl::getTheme () : $pTheme; 881 881 $i18n = CopixConfig::instance ()->i18n_path_enabled; 882 882 $lang = CopixI18N::getLang (); … … 926 926 * @return string le $ressourcePath complet en fonction des thèmes 927 927 */ 928 public static function getResourcePath ($pResourcePath ) {928 public static function getResourcePath ($pResourcePath, $pTheme = null) { 929 929 static $calculated = array (); 930 930 931 $theme = CopixTpl::getTheme ();931 $theme = ($pTheme === null) ? CopixTpl::getTheme () : $pTheme; 932 932 $i18n = CopixConfig::instance ()->i18n_path_enabled; 933 933 $lang = CopixI18N::getLang (); trunk/utils/copix/core/shortcuts.lib.php
r2870 r3152 71 71 * @return string 72 72 */ 73 function _resource ($pResourcePath ){74 return CopixUrl::getResource ($pResourcePath );73 function _resource ($pResourcePath, $pTheme = null){ 74 return CopixUrl::getResource ($pResourcePath, $pTheme); 75 75 } 76 76 … … 81 81 * @return string 82 82 */ 83 function _resourcePath ($pResourcePath ){84 return CopixUrl::getResourcePath ($pResourcePath );83 function _resourcePath ($pResourcePath, $pTheme = null){ 84 return CopixUrl::getResourcePath ($pResourcePath, $pTheme); 85 85 } 86 86
