Index: trunk/phase3/includes/Skin.php |
— | — | @@ -2036,14 +2036,28 @@ |
2037 | 2037 | } |
2038 | 2038 | } |
2039 | 2039 | |
| 2040 | + /** |
| 2041 | + * Return a fully resolved style path url to images or styles stored in the common folder. |
| 2042 | + * This method returns a url resolved using the configured skin style path |
| 2043 | + * and includes the style version inside of the url. |
| 2044 | + * @param $name String: The name or path of the common file to return the full path for. |
| 2045 | + * @return String The fully resolved style path url including styleversion |
| 2046 | + */ |
2040 | 2047 | function getCommonStylePath( $name ) { |
2041 | 2048 | global $wgStylePath, $wgStyleVersion; |
2042 | | - return "{$wgStylePath}/common/$name?$wgStyleVersion"; |
| 2049 | + return "{$wgStylePath}/common/$name?{$wgStyleVersion}"; |
2043 | 2050 | } |
2044 | 2051 | |
| 2052 | + /** |
| 2053 | + * Return a fully resolved style path url to images or styles stored in the curent skins's folder. |
| 2054 | + * This method returns a url resolved using the configured skin style path |
| 2055 | + * and includes the style version inside of the url. |
| 2056 | + * @param $name String: The name or path of the skin resource file to return the full path for. |
| 2057 | + * @return String The fully resolved style path url including styleversion |
| 2058 | + */ |
2045 | 2059 | function getSkinStylePath( $name ) { |
2046 | 2060 | global $wgStylePath, $wgStyleVersion; |
2047 | | - return "{$wgStylePath}/{$this->stylename}/$name?$wgStyleVersion"; |
| 2061 | + return "{$wgStylePath}/{$this->stylename}/$name?{$wgStyleVersion}"; |
2048 | 2062 | } |
2049 | 2063 | |
2050 | 2064 | /* these are used extensively in SkinTemplate, but also some other places */ |