sync
authorjohn <john@roojs.com>
Wed, 15 Aug 2018 09:21:32 +0000 (17:21 +0800)
committerjohn <john@roojs.com>
Wed, 15 Aug 2018 09:21:32 +0000 (17:21 +0800)
Asset.php
UpdateDatabase.php

index 88937fa..2b80a92 100644 (file)
--- a/Asset.php
+++ b/Asset.php
@@ -55,9 +55,6 @@ class Pman_Core_Asset extends Pman {
      
         $fn = $compile . '/'. $s .'.'. $bits[0];
         
-        
-        
-        
         if (!file_exists($fn)) {
             header('Content-Type: '. $this->types[$bits[0]]);
         
@@ -65,7 +62,6 @@ class Pman_Core_Asset extends Pman {
             exit;
         }
         
-        
         $supportsGzip = !empty($_SERVER['HTTP_ACCEPT_ENCODING']) && strpos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) !== false;
 
         
@@ -125,10 +121,10 @@ class Pman_Core_Asset extends Pman {
      
     static function getCompileDir($type)
     {
-        $ui = posix_getpwuid(posix_geteuid());
-        
         $ff = HTML_FlexyFramework::get();
         
+        $ui = posix_getpwuid(posix_geteuid());
+        
         $compile_dir = session_save_path() . "/";
         
         switch($type) {
@@ -159,6 +155,8 @@ class Pman_Core_Asset extends Pman {
     
     function clearCompiledFilesCache()
     {
-        exit('testing');
+        // using getCompileDir..
+        
+        return;
     }
 }
index e2630fa..4d142aa 100644 (file)
@@ -215,9 +215,8 @@ class Pman_Core_UpdateDatabase extends Pman
         $this->runExtensions();
         
         $this->clearApacheDataobjectsCache();
-        
-         
     }
+    
     function output() {
         echo "\nUpdate Completed SUCCESS\n";
         return '';