Ignore:
Timestamp:
Jun 26, 2011, 12:03:12 AM (13 years ago)
Author:
plg
Message:

feature 2365 added: Piwigo version is written in the database (as
"piwigo_db_version" in the config table). We only store the branch,
not the release : 2.3 and not 2.3.1, because database structure is
not changing between minor releases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r11162 r11511  
    16011601  return $options;
    16021602}
     1603
     1604
     1605/**
     1606 * return the branch from the version. For example version 2.2.4 is for branch 2.2
     1607 */
     1608function get_branch_from_version($version)
     1609{
     1610  return implode('.', array_slice(explode('.', $version), 0, 2));
     1611}
    16031612?>
Note: See TracChangeset for help on using the changeset viewer.