Changeset 16479
- Timestamp:
- 05/27/08 23:48:13 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/services/_i18n_l10n.php
r15698 r16479 199 199 * It will write all loaded languages to disk, regardless of changes. 200 200 */ 201 function flush() { 201 function flush() 202 { 202 203 foreach ($this->_stringdb as $lang => $table) 203 204 { 204 if (!is_writable("{$this->_library_filename}.{$lang}.txt")) 205 $file = @fopen("{$this->_library_filename}.{$lang}.txt", 'w'); 206 207 if (!$file) 205 208 { 206 209 $_MIDCOM->uimessages->add("L10N Error", "Failed to open the file '{$this->_library_filename}.{$lang}.txt' for writing.", 'error'); … … 211 214 } 212 215 213 $file = fopen("{$this->_library_filename}.{$lang}.txt", 'w');214 216 215 217 fwrite($file, "---# MidCOM String Database\n");
