Fix situation where AppDB is not at DocumentRoot
This commit is contained in:
@@ -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) )
|
||||
|
||||
Reference in New Issue
Block a user