Images.php
authorAlan Knowles <alan@roojs.com>
Wed, 23 May 2012 01:43:22 +0000 (09:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 May 2012 01:43:22 +0000 (09:43 +0800)
Images.php

index c8a77db..77c5d87 100644 (file)
@@ -232,9 +232,21 @@ class Pman_Core_Images extends Pman
             if(!preg_match('#/(Images|Images/Thumb/[a-z0-9]+|Images/Download)/([0-9]+)/(.*)$#', $attr['src'], $umatch))  {
                 continue;
             }
+            $id = $umatch[2];
+            $type = explode('/', $umatch[1]);
+            $thumbsize = false;
+            if (count($type) > 2 && $type[1] == 'Thumb') {
+                $thumbsize = $type[2];
+            }
+            if ($attr)
+            
+            
+            
+            
             // make an image url..
             print_R($umatch);exit;
-        }    
+        }
+        return $html;
         
     }