Esempio n. 1
0
 private static function setPathCache()
 {
     self::$path_cache = self::$path_plugin . "cache/";
     if (self::$is_multisite) {
         if (!defined("BLOGUPLOADDIR") || !is_dir(BLOGUPLOADDIR)) {
             return false;
         }
         $path = BLOGUPLOADDIR . self::$dir_plugin . "-cache/";
         if (!is_dir($path)) {
             mkdir($path);
         }
         if (is_dir($path)) {
             self::$path_cache = $path;
         }
     }
 }