Changeset 321

Show
Ignore:
Timestamp:
02/26/08 22:55:43 (6 months ago)
Author:
nperriault
Message:

Clever Svg: Silly validation exception handling fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cleversvg/trunk/document/csDocument.class.php

    r320 r321  
    662662  public function validate(DOMDocument $dom) 
    663663  { 
    664     if ($this->strict_mode === true) 
    665     { 
    666       if (!$dom->validate()) 
    667       { 
    668         throw new csException('This SVG Document does not validate'); 
    669       } 
     664    if (true == $this->strict_mode && !$dom->validate()) 
     665    { 
     666      throw new csException('This SVG Document does not validate'); 
    670667    } 
    671668  }