Changeset 11185


Ignore:
Timestamp:
06/01/11 12:45:45 (8 years ago)
Author:
plg
Message:

bug fixed: accept Piwigo version with a pattern like 2.3.0beta1 in plugins/themes/languages/updates management classes

Location:
trunk/admin/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/languages.class.php

    r10594 r11185  
    231231    if (fetchRemote($url, $result, $get_data) and $pem_versions = @unserialize($result)) 
    232232    { 
    233       if (!preg_match('/^\d+\.\d+\.\d+/', $version)) 
     233      if (!preg_match('/^\d+\.\d+\.\d+$/', $version)) 
    234234      { 
    235235        $version = $pem_versions[0]['name']; 
  • trunk/admin/include/plugins.class.php

    r11047 r11185  
    270270    if (fetchRemote($url, $result) and $pem_versions = @unserialize($result)) 
    271271    { 
    272       if (!preg_match('/^\d+\.\d+\.\d+/', $version)) 
     272      if (!preg_match('/^\d+\.\d+\.\d+$/', $version)) 
    273273      { 
    274274        $version = $pem_versions[0]['name']; 
  • trunk/admin/include/themes.class.php

    r10594 r11185  
    442442    if (fetchRemote($url, $result, $get_data) and $pem_versions = @unserialize($result)) 
    443443    { 
    444       if (!preg_match('/^\d+\.\d+\.\d+/', $version)) 
     444      if (!preg_match('/^\d+\.\d+\.\d+$/', $version)) 
    445445      { 
    446446        $version = $pem_versions[0]['name']; 
  • trunk/admin/include/updates.class.php

    r11045 r11185  
    6060    if (fetchRemote($url, $result, $get_data) and $pem_versions = @unserialize($result)) 
    6161    { 
    62       if (!preg_match('/^\d+\.\d+\.\d+/', $version)) 
     62      if (!preg_match('/^\d+\.\d+\.\d+$/', $version)) 
    6363      { 
    6464        $version = $pem_versions[0]['name']; 
Note: See TracChangeset for help on using the changeset viewer.