Author: caziel
Date: 2010-01-26 22:54:22 +0100 (Tue, 26 Jan 2010)
New Revision: 27214

Modified:
   plugins/rsCssSpritesPlugin/trunk/lib/task/rsCssSpritesTask.class.php
   plugins/rsCssSpritesPlugin/trunk/lib/vendor/smartsprites/smartsprites.sh
Log:
fixed permissions, tiny refactoring


Modified: plugins/rsCssSpritesPlugin/trunk/lib/task/rsCssSpritesTask.class.php
===================================================================
--- plugins/rsCssSpritesPlugin/trunk/lib/task/rsCssSpritesTask.class.php        
2010-01-26 20:59:41 UTC (rev 27213)
+++ plugins/rsCssSpritesPlugin/trunk/lib/task/rsCssSpritesTask.class.php        
2010-01-26 21:54:22 UTC (rev 27214)
@@ -33,10 +33,10 @@
     $params[] = "--sprite-png-ie6";
     $params[] = "--document-root-dir-path ".sfConfig::get("sf_web_dir");
 
-    $chdir = "cd ".dirname(__FILE__)."/../vendor/smartsprites/";
+    $script = "cd ".dirname(__FILE__)."/../vendor/smartsprites/ && 
./smartsprites.sh";
 
-    $command = $chdir." && ./smartsprites.sh ".join(" ", $params);
+    $command = $script." ".join(" ", $params);
 
-    $this->log(sfFilesystem::sh($command));
+    $this->log($this->getFilesystem()->execute($command));
   }
 }


Property changes on: 
plugins/rsCssSpritesPlugin/trunk/lib/vendor/smartsprites/smartsprites.sh
___________________________________________________________________
Added: svn:executable
   + *

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to