Author: Jonathan.Wage
Date: 2010-01-15 02:07:38 +0100 (Fri, 15 Jan 2010)
New Revision: 26665

Modified:
   plugins/sfSympalPlugin/trunk/lib/minify/sfSympalMinifier.class.php
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalInstallPlugin/lib/sfSympalInstall.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue with creation of web/cache directory


Modified: plugins/sfSympalPlugin/trunk/lib/minify/sfSympalMinifier.class.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/minify/sfSympalMinifier.class.php  
2010-01-15 00:36:41 UTC (rev 26664)
+++ plugins/sfSympalPlugin/trunk/lib/minify/sfSympalMinifier.class.php  
2010-01-15 01:07:38 UTC (rev 26665)
@@ -52,6 +52,10 @@
         {
           mkdir($dir, 0777, true);
         }
+        if (!is_dir($dir = dirname($cachedPath)))
+        {
+          mkdir($dir, 0777, true);
+        }
         file_put_contents($cachedPath, $minified);
       }
     

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalInstallPlugin/lib/sfSympalInstall.class.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalInstallPlugin/lib/sfSympalInstall.class.php
        2010-01-15 00:36:41 UTC (rev 26664)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalInstallPlugin/lib/sfSympalInstall.class.php
        2010-01-15 01:07:38 UTC (rev 26665)
@@ -166,6 +166,12 @@
   {
     $task = new sfSympalCreateSiteTask($this->_dispatcher, $this->_formatter);
     $task->run(array('application' => $this->_application), 
array('no-confirmation' => true));  
+
+    $dir = sfConfig::get('sf_web_dir').'/cache';
+    if (!is_dir($dir))
+    {
+      mkdir($dir, 0777, true);
+    }
   }
 
   protected function _installAddonPlugins()

-- 
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