diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-21 18:57:44 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-21 18:57:44 -0800 |
| commit | f8a4c6edaa405494139aaf8eb6579a9488e73034 (patch) | |
| tree | 098263faec67d468c70cf74f70a3f7136e55a2a2 /modules/gallery/libraries/Gallery_View.php | |
| parent | 23a60fb1f217475419c55adc7ce7427fcdadb2c3 (diff) | |
| parent | 38233c67a2946d6fe7b6457217541c796247285d (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/libraries/Gallery_View.php')
| -rw-r--r-- | modules/gallery/libraries/Gallery_View.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/Gallery_View.php b/modules/gallery/libraries/Gallery_View.php index bdfd2fc9..3bf56d0f 100644 --- a/modules/gallery/libraries/Gallery_View.php +++ b/modules/gallery/libraries/Gallery_View.php @@ -125,7 +125,7 @@ class Gallery_View_Core extends View { if (preg_match_all($PATTERN, $css, $matches, PREG_SET_ORDER)) { $search = $replace = array(); foreach ($matches as $match) { - $relative = substr(realpath(dirname($css_file) . "/$match[1]"), $docroot_length); + $relative = dirname($css_file) . "/$match[1]"; if (!empty($relative)) { $search[] = $match[0]; $replace[] = "url('" . url::abs_file($relative) . "')"; |
