Changeset 445

Show
Ignore:
Timestamp:
08/09/09 09:48:27 (11 years ago)
Author:
kovell
Message:

Fix: Parser works with php4

Location:
dev/common/includes
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.parser.php

    r417 r445  
    8383    { 
    8484        //trim out any multiple spaces that may exist 
    85         $check = 1; 
    86         while($check > 0) { 
    87             $this->killmail_ = str_replace('  ', ' ', $this->killmail_, $check); 
    88         } 
    89  
     85                $this->killmail_ = preg_replace('/ +/', ' ', $this->killmail_); 
     86                 
    9087        // header section 
    9188        $involvedpos = strpos($this->killmail_, "Involved parties:"); 
  • dev/common/includes/globals.php

    r444 r445  
    77else 
    88{ 
    9         $svn_rev = '444'; 
     9        $svn_rev = '445'; 
    1010} 
    1111define('SVN_REV', $svn_rev);