Ignore:
Timestamp:
Mar 30, 2021, 11:16:34 PM (3 years ago)
Author:
roby
Message:

ulteriori modifiche per adeguamento a php7
Client: aggiornamento jpgraph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/grafici/gd_image.inc.php

    r340 r346  
    109109        }
    110110        else {
    111         //    JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')
     111            JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')
    112112        }
    113113    }
     
    221221    }
    222222
    223     static function GetWidth($aImg=null) {
    224         if( $aImg === null ) {
    225             $aImg = $this->img;
    226         }
     223    static function GetWidth($aImg) {
    227224        return imagesx($aImg);
    228225    }
    229226
    230     static function GetHeight($aImg=null) {
    231         if( $aImg === null ) {
    232             $aImg = $this->img;
    233         }
     227    static function GetHeight($aImg) {
    234228        return imagesy($aImg);
    235229    }
     
    22712265    function GetAndStream($aImage,$aCacheFileName) {
    22722266        if( $this->Isvalid($aCacheFileName) ) {
    2273             $this->StreamImgFile($aImage,$aCacheFileName);
     2267            return $this->StreamImgFile($aImage,$aCacheFileName);
    22742268        }
    22752269        else {
Note: See TracChangeset for help on using the changeset viewer.