Changeset 1546

Show
Ignore:
Timestamp:
12/03/2006 04:44:38 PM (2 years ago)
Author:
wei
Message:

Fix #476

Location:
branches/3.0/framework
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/3.0/framework/I18N/core/MessageSource_XLIFF.php

    r1527 r1546  
    288288        $body = $xpath->query('//body')->item(0); 
    289289 
    290                 $count = $xpath->query('//trans-unit')->length; 
     290                $lastNodes = $xpath->query('//trans-unit[last()]'); 
     291                if(($last=$lastNodes->item(0))!==null) 
     292                        $count = intval($last->getAttribute('id')); 
     293                else 
     294                        $count = 0; 
    291295 
    292296                //for each message add it to the XML file using DOM 
  • branches/3.0/framework/Web/TAssetManager.php

    r1529 r1546  
    252252         * @todo a generic solution to ignore certain directories and files 
    253253         */ 
    254         protected function copyDirectory($src,$dst) 
     254        public function copyDirectory($src,$dst) 
    255255        { 
    256256                if(!is_dir($dst))