Explorar el Código

[AsseticBundle] Fixed url for assets in the debugging mode.

Deni hace 14 años
padre
commit
4c54218a4b
Se han modificado 1 ficheros con 1 adiciones y 14 borrados
  1. 1 14
      src/Symfony/Bundle/AsseticBundle/Templating/AsseticHelper.php

+ 1 - 14
src/Symfony/Bundle/AsseticBundle/Templating/AsseticHelper.php

@@ -85,22 +85,9 @@ class AsseticHelper extends Helper
             return array($coll->getTargetUrl());
             return array($coll->getTargetUrl());
         }
         }
 
 
-        // create a pattern for each leaf's target url
-        $pattern = $coll->getTargetUrl();
-        if (false !== $pos = strrpos($pattern, '.')) {
-            $pattern = substr($pattern, 0, $pos).'_*'.substr($pattern, $pos);
-        } else {
-            $pattern .= '_*';
-        }
-
         $urls = array();
         $urls = array();
         foreach ($coll as $leaf) {
         foreach ($coll as $leaf) {
-            $asset = $this->factory->createAsset($leaf->getSourceUrl(), $filters, array(
-                'output' => $pattern,
-                'name'   => 'part'.(count($urls) + 1),
-                'debug'  => $options['debug'],
-            ));
-            $urls[] = $asset->getTargetUrl();
+            $urls[] = $leaf->getTargetUrl();
         }
         }
 
 
         return $urls;
         return $urls;