Index: trunk/kernel/include/image.php =================================================================== diff -u -r900 -r1015 --- trunk/kernel/include/image.php (.../image.php) (revision 900) +++ trunk/kernel/include/image.php (.../image.php) (revision 1015) @@ -68,10 +68,16 @@ global $pathtoroot; $p = $this->Get("ThumbPath"); + $localp = $this->Get("LocalPath"); if(strlen($p)) { $parts = pathinfo($pathtoroot.$p); $d = $parts["dirname"]."/"; + } + elseif (strlen($localp)) + { + $parts = pathinfo($pathtoroot.$localp); + $d = $parts["dirname"]."/"; } if($this->Pending) @@ -517,7 +523,9 @@ global $rootURL, $pathtoroot, $objConfig; if(strlen($this->Get("ThumbUrl"))) - return $this->Get("ThumbUrl"); + { + return $this->Get("ThumbUrl"); + } if($this->Get("LocalThumb")=="1") { @@ -537,7 +545,9 @@ return $rootURL."kernel/images/noimage.gif"; } else + { return $rootURL."kernel/images/noimage.gif"; + } } function ParseObject($element) @@ -627,6 +637,10 @@ $result = $this->adodbConnection->Execute($sql); $this->Set("Priority", $result->fields["p"]+1); } + + function MakeThumbnail () { + + } } class clsImageList extends clsItemCollection