Dotclear


Ignore:
Timestamp:
11/04/16 11:47:26 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Check minimum version of PHP required before giving access to auto-update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.update.php

    r3350 r3390  
    2828          'checksum' => null, 
    2929          'info' => null, 
     30          'php' => '5.3', 
    3031          'notify' => true 
    3132     ); 
     
    5859      * @return string                  Latest version if available 
    5960      */ 
    60      public function check($version, $nocache=false) 
     61     public function check($version,$nocache=false) 
    6162     { 
    6263          $this->getVersionInfo($nocache); 
     
    158159     { 
    159160          return $this->version_info['checksum']; 
     161     } 
     162 
     163     public function getPHPVersion() 
     164     { 
     165          return $this->version_info['php']; 
    160166     } 
    161167 
     
    453459                    $this->version_info['checksum'] = isset($r['checksum']) ? (string) $r['checksum'] : null; 
    454460                    $this->version_info['info'] = isset($r['info']) ? (string) $r['info'] : null; 
     461                    $this->version_info['php'] = isset($r['php']) ? (string) $r['php'] : null; 
    455462               } 
    456463          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map