Changeset 5994
- Timestamp:
- 02/03/12 12:17:57 (4 months ago)
- File:
-
- 1 edited
-
trunk/core/viewhelper/theme.core.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/viewhelper/theme.core.php
r5963 r5994 109 109 } 110 110 111 public function getW WWPath($theme = null)111 public function getWebPath($theme = null) 112 112 { 113 113 if($theme == null) … … 236 236 $part = explode('.', $this->theme_info['css']['mainfile']); 237 237 $cssname = $part[0] . $cssPostfix . '.' . $part[1]; 238 return $this->getW WWPath() . 'css/' . $cssname;238 return $this->getWebPath() . 'css/' . $cssname; 239 239 } 240 240 elseif(false === isset($this->theme_info['css']['mainfile'])) 241 241 { 242 242 # maybe we have a theme css file named after the theme 243 $css_file = $this->getW WWPath() . 'css/' . $this->getName() . '.css';243 $css_file = $this->getWebPath() . 'css/' . $this->getName() . '.css'; 244 244 245 245 if(is_file($css_file)) … … 282 282 if(isset($this->theme_info['javascript']['mainfile'])) 283 283 { 284 return $this->getW WWPath() . 'javascript/' . $this->theme_info['javascript']['mainfile'];284 return $this->getWebPath() . 'javascript/' . $this->theme_info['javascript']['mainfile']; 285 285 } 286 286 elseif(false === isset($this->theme_info['javascript']['mainfile'])) 287 287 { 288 288 # maybe we have a main javascript file named after the theme 289 $js_file = $this->getW WWPath() . 'javascript/' . $this->getName() . '.js';289 $js_file = $this->getWebPath() . 'javascript/' . $this->getName() . '.js'; 290 290 291 291 if(is_file($js_file))
Note: See TracChangeset
for help on using the changeset viewer.
