Changeset 4496
- Timestamp:
- 10/27/06 14:36:55 (2 years ago)
- Files:
-
- trunk/support/Role_Midgardelement/Midgardelement.php (modified) (2 diffs)
- trunk/support/Role_Midgardelement/package.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/support/Role_Midgardelement/Midgardelement.php
r4178 r4496 245 245 $new_element->name = $element_name; 246 246 $new_element->sitegroup = $this->sitegroup; 247 $new_element->value = file_get_contents($installing_paths[3]); 247 248 $stat = $new_element->create(); 248 249 if (!$stat) … … 261 262 { 262 263 $element = $elements[0]; 263 } 264 265 // Load contents of the element file266 $element->value = file_get_contents($installing_paths[3]);267 $stat = $element->update();268 if (!$stat)269 {270 PEAR::raiseError("Failed to update element \"{$element_name}\" under Midgard style \"{$style->name}\", error " . mgd_errstr(), mgd_errno(), PEAR_ERROR_DIE);264 265 // Load contents of the element file 266 $element->value = file_get_contents($installing_paths[3]); 267 $stat = $element->update(); 268 if (!$stat) 269 { 270 PEAR::raiseError("Failed to update element \"{$element_name}\" under Midgard style \"{$style->name}\", error " . mgd_errstr(), mgd_errno(), PEAR_ERROR_DIE); 271 } 271 272 } 272 273 } trunk/support/Role_Midgardelement/package.xml
r4470 r4496 19 19 <active>yes</active> 20 20 </developer> 21 <date>2006- 09-22</date>21 <date>2006-10-27</date> 22 22 <time>20:55:14</time> 23 23 <version> … … 31 31 <license uri="http://www.php.net/license/3_01.txt">PHP License</license> 32 32 <notes> 33 Fixes to authentication when uploading to sitegroups.33 Workaround for a Midgard 1.8 style multilang issue 34 34 </notes> 35 35 <contents>
