Fix situation where AppDB is not at DocumentRoot

This commit is contained in:
Tony Lambregts
2005-07-27 02:10:56 +00:00
committed by WineHQ
parent a45a1fa869
commit 324ed66eae
3 changed files with 12 additions and 9 deletions

View File

@@ -21,8 +21,7 @@ class Image {
*/
function Image($sRelativePath)
{
$this->file = $_SERVER['DOCUMENT_ROOT'].$sRelativePath;
$this->file = appdb_fullpath($sRelativePath);
$info = @getimagesize($this->file);
if( empty($info) )