Images.php
authorAlan Knowles <alan@roojs.com>
Wed, 23 May 2012 02:48:18 +0000 (10:48 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 May 2012 02:48:18 +0000 (10:48 +0800)
Images.php

index d18fda9..55afe42 100644 (file)
@@ -223,6 +223,12 @@ class Pman_Core_Images extends Pman
     
     static function replaceImgURLS($html, $baseURL)
     {
+        
+        $ff = HTML_FlexyFramework::get();
+        if (!isset($ff->Pman_Image['public_baseURL'])) {
+            return $html;
+        }
+        
         preg_match_all('/<img\w[^>]+>/i',$html, $result); 
 
         $matches = array_unique($result[0]);