Changeset 5994


Ignore:
Timestamp:
02/03/12 12:17:57 (4 months ago)
Author:
vain
Message:
  • renamed getWWWPath() to getWebPath()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/viewhelper/theme.core.php

    r5963 r5994  
    109109    } 
    110110 
    111     public function getWWWPath($theme = null) 
     111    public function getWebPath($theme = null) 
    112112    { 
    113113        if($theme == null) 
     
    236236            $part = explode('.', $this->theme_info['css']['mainfile']); 
    237237            $cssname = $part[0] . $cssPostfix . '.' . $part[1]; 
    238             return $this->getWWWPath() . 'css/' . $cssname; 
     238            return $this->getWebPath() . 'css/' . $cssname; 
    239239        } 
    240240        elseif(false === isset($this->theme_info['css']['mainfile'])) 
    241241        { 
    242242            # maybe we have a theme css file named after the theme 
    243             $css_file = $this->getWWWPath() . 'css/' . $this->getName() . '.css'; 
     243            $css_file = $this->getWebPath() . 'css/' . $this->getName() . '.css'; 
    244244 
    245245            if(is_file($css_file)) 
     
    282282        if(isset($this->theme_info['javascript']['mainfile'])) 
    283283        { 
    284             return $this->getWWWPath() . 'javascript/' . $this->theme_info['javascript']['mainfile']; 
     284            return $this->getWebPath() . 'javascript/' . $this->theme_info['javascript']['mainfile']; 
    285285        } 
    286286        elseif(false === isset($this->theme_info['javascript']['mainfile'])) 
    287287        { 
    288288            # maybe we have a main javascript file named after the theme 
    289             $js_file = $this->getWWWPath() . 'javascript/' . $this->getName() . '.js'; 
     289            $js_file = $this->getWebPath() . 'javascript/' . $this->getName() . '.js'; 
    290290 
    291291            if(is_file($js_file)) 
Note: See TracChangeset for help on using the changeset viewer.