Skip to content

Commit

Permalink
Fixed problem with installing third party extension packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
itronics committed Sep 6, 2016
1 parent 68bf09b commit 1285e40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/packages.inc
Expand Up @@ -730,8 +730,8 @@ function check_src_ext_version($ext_v)
global $src_version;

$compat_levels = 2; // current policy is keeping compatibility on major version level.
$app = explode('.', strspn($src_version, "0123456789."));
$pkg = explode('.', strspn($ext_v, "0123456789."));
$app = explode('.', substr($src_version, 0, strspn($src_version, "0123456789.")));
$pkg = explode('.', substr($ext_v, 0, strspn($ext_v, "0123456789.")));

for ($i=0; $i < min($compat_levels, count($app)); $i++)
if ($pkg[$i] < $app[$i])
Expand Down

0 comments on commit 1285e40

Please sign in to comment.