Example #1
0
 function createDirectories($name)
 {
     if ($this->admin_dir) {
         $adirectory = new mosDirectory($this->admin_dir);
         $type = $this->type;
         if (!$adirectory->createFresh()) {
             $this->errors->addErrorDetails(sprintf(T_('Installer error with %s: unable to create admin directory for %s %s'), $this->xmlfile, $type, $name), _MOS_ERROR_SEVERE);
             return false;
         }
     }
     if ($this->user_dir) {
         $udirectory = new mosDirectory($this->user_dir);
         if (!$udirectory->createFresh()) {
             $this->errors->addErrorDetails(sprintf(T_('Installer error with %s: unable to create user directory for %s %s'), $this->xmlfile, $type, $name), _MOS_ERROR_SEVERE);
             return false;
         }
         return true;
     }
 }