Changeset 207
- Timestamp:
- 23/02/07 14:27:40 (2 years ago)
- Files:
-
- miscfunctions.lib.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
miscfunctions.lib.php
r205 r207 39 39 } 40 40 41 $revision = " unknown";41 $revision = "0"; 42 42 function startElement($parser, $name, $attrs) 43 43 { 44 44 global $revision; 45 if($name=="ENTRY" && $attrs['NAME']=="") { 46 $revision = $attrs['REVISION']; 47 } 45 if ($attrs['REVISION']>$revision) $revision = $attrs['REVISION']; 48 46 } 49 47 … … 58 56 return "unknown - couldn't open SVN XML file."; 59 57 } 60 while(($data = fread($fp, 1024)) && $revision=="unknown") {58 while(($data = fread($fp, 1024))) { 61 59 if (!xml_parse($xml_parser, $data, feof($fp))) { 62 60 return "unknown - couldn't parse SVN XML file"; … … 64 62 } 65 63 xml_parser_free($xml_parser); 66 return $revision; 64 if ($revision=="0") return "unknown"; 65 else return $revision; 67 66 } 68 67
