Changeset 4496

Show
Ignore:
Timestamp:
10/27/06 14:36:55 (2 years ago)
Author:
bergie
Message:

Forward-port

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/support/Role_Midgardelement/Midgardelement.php

    r4178 r4496  
    245245                $new_element->name = $element_name; 
    246246                $new_element->sitegroup = $this->sitegroup; 
     247                $new_element->value = file_get_contents($installing_paths[3]); 
    247248                $stat = $new_element->create(); 
    248249                if (!$stat) 
     
    261262            { 
    262263                $element = $elements[0]; 
    263             } 
    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); 
     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                } 
    271272            } 
    272273        } 
  • trunk/support/Role_Midgardelement/package.xml

    r4470 r4496  
    1919        <active>yes</active> 
    2020    </developer> 
    21     <date>2006-09-22</date> 
     21    <date>2006-10-27</date> 
    2222    <time>20:55:14</time> 
    2323    <version> 
     
    3131    <license uri="http://www.php.net/license/3_01.txt">PHP License</license> 
    3232    <notes> 
    33         Fixes to authentication when uploading to sitegroups. 
     33        Workaround for a Midgard 1.8 style multilang issue 
    3434    </notes> 
    3535    <contents>