Changeset 16178 for branches/2.4/admin


Ignore:
Timestamp:
06/29/12 16:31:29 (7 years ago)
Author:
mistic100
Message:

merge r16177 from trunk
incompatible plugins check doesn't work since 2.4, because version number format has changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/admin/include/plugins.class.php

    r12922 r16178  
    276276        $version = $pem_versions[0]['name']; 
    277277      } 
    278       $branch = substr($version, 0, strrpos($version, '.')); 
     278       
     279      if (substr_count($version, '.') > 1) 
     280      { 
     281        $branch = substr($version, 0, strrpos($version, '.')); 
     282      } 
     283      else 
     284      { 
     285        $branch = $version; 
     286      } 
     287       
    279288      foreach ($pem_versions as $pem_version) 
    280289      { 
Note: See TracChangeset for help on using the changeset viewer.