Dotclear

Changeset 2517:9318c6f7e9a8


Ignore:
Timestamp:
11/07/13 07:51:56 (10 years ago)
Author:
Denis Jean-Christian <contact@…>
Branch:
2.6
Message:

re-fix force check update (lost in merge), fixes #1844

File:
1 edited

Legend:

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

    r1280 r2517  
    5555      *  
    5656      * @param version        string    Current version to compare 
     57      * @param nocache        boolean   Force checking 
    5758      * @return string                  Latest version if available 
    5859      */ 
    59      public function check($version) 
    60      { 
    61           $this->getVersionInfo(); 
     60     public function check($version, $nocache=false) 
     61     { 
     62          $this->getVersionInfo($nocache); 
    6263          $v = $this->getVersion(); 
    6364          if ($v && version_compare($version,$v,'<')) { 
     
    6869     } 
    6970      
    70      public function getVersionInfo() 
     71     public function getVersionInfo($nocache=false) 
    7172     { 
    7273          # Check cached file 
    73           if (is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->cache_ttl)) 
     74          if (is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->cache_ttl) && !$nocache) 
    7475          { 
    7576               $c = @file_get_contents($this->cache_file); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map