Changeset 209

Show
Ignore:
Timestamp:
25/02/07 19:53:06 (2 years ago)
Author:
dez
Message:

Alters version number calculator to take into account symlinks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • miscfunctions.lib.php

    r207 r209  
    5353        $xml_parser = xml_parser_create(); 
    5454        xml_set_element_handler($xml_parser, "startElement", "endElement"); 
    55         if (!($fp = fopen(".svn/entries", "r"))) { 
     55        $entriesfile = ".svn/entries"; 
     56        if (is_link($_SERVER['SCRIPT_FILENAME'])) { 
     57                $entriesfile = dirname(readlink($_SERVER['SCRIPT_FILENAME']))."/".$entriesfile; 
     58        } 
     59        if (!($fp = fopen($entriesfile, "r"))) { 
    5660                return "unknown - couldn't open SVN XML file."; 
    5761        }