Пример #1
0
 /**
  * 
  * set cache path for images. for multisite it will be current blog content folder
  */
 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;
         }
     }
 }