Пример #1
0
 function updateAddPhotoConfig($strAlbumName, $config)
 {
     $curconf = HelperAlbum::ReadConfigFile($this->strAlbumPath . '/' . $strAlbumName . '/pictures.conf');
     foreach ($config as $key => $conf) {
         $config[$key] = str_replace("\r\n", '<br />', $conf);
     }
     $config = array_merge($curconf, $config);
     if (HelperAlbum::SaveConfigFile($this->strAlbumPath . '/' . $strAlbumName . '/pictures.conf', $config)) {
         return true;
     } else {
         $this->errMsg = HelperAlbum::getError();
         return false;
     }
 }