public function __construct()
 {
     $this->set_default(self::DEFAULT_LANG, self::DEFAULT_LANG_NAME);
     $this->directory(CRAYON_LANG_PATH);
     $this->relative_directory(CRAYON_LANG_DIR);
     $this->extension('txt');
     CrayonLog::debug("Setting lang directories");
     $upload = CrayonGlobalSettings::upload_path();
     if ($upload) {
         $this->user_directory($upload . CRAYON_LANG_DIR);
         if (!is_dir($this->user_directory())) {
             CrayonGlobalSettings::mkdir($this->user_directory());
             CrayonLog::debug($this->user_directory(), "LANG USER DIR");
         }
     } else {
         CrayonLog::syslog("Upload directory is empty: " . $upload . " cannot load languages.");
     }
     CrayonLog::debug($this->directory());
     CrayonLog::debug($this->user_directory());
 }
 function __construct()
 {
     $this->set_default(self::DEFAULT_FONT, self::DEFAULT_FONT_NAME);
     $this->directory(CRAYON_FONT_PATH);
     $this->relative_directory(CRAYON_FONT_DIR);
     $this->extension('css');
     CrayonLog::debug("Setting font directories");
     $upload = CrayonGlobalSettings::upload_path();
     if ($upload) {
         $this->user_directory($upload . CRAYON_FONT_DIR);
         if (!is_dir($this->user_directory())) {
             CrayonGlobalSettings::mkdir($this->user_directory());
             CrayonLog::debug($this->user_directory(), "THEME DIR");
         }
     } else {
         CrayonLog::syslog("Upload directory is empty: " . $upload);
     }
     CrayonLog::debug($this->directory());
     CrayonLog::debug($this->user_directory());
 }
 public static function set_mkdir($mkdir = NULL)
 {
     if ($mkdir === NULL) {
         return self::$mkdir;
     } else {
         self::$mkdir = $mkdir;
     }
 }