Changeset 16177


Ignore:
Timestamp:
Jun 29, 2012, 4:29:48 PM (12 years ago)
Author:
mistic100
Message:

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

File:
1 edited

Legend:

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

    r12922 r16177  
    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.