diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-11-21 11:36:27 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-21 11:36:27 -0800 |
| commit | 38233c67a2946d6fe7b6457217541c796247285d (patch) | |
| tree | f4b8860c6ae6c8b0846f65f65bb9b56188c0758e /modules/gallery/libraries | |
| parent | d6695e83e245d3d478ba4ecf1e3a2a5bb52665d3 (diff) | |
| parent | 5e57346040629393c08777ae129044bb7ed08a37 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/libraries')
| -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) . "')"; |
