Changeset 11511
- Timestamp:
- Jun 26, 2011, 12:03:12 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r10128 r11511 133 133 134 134 load_conf_from_db(); 135 136 if (!$conf['check_upgrade_feed']) 137 { 138 if (!isset($conf['piwigo_db_version']) or $conf['piwigo_db_version'] != get_branch_from_version(PHPWG_VERSION)) 139 { 140 redirect(get_root_url().'upgrade.php'); 141 } 142 } 143 135 144 load_plugins(); 136 145 -
trunk/include/functions.inc.php
r11162 r11511 1601 1601 return $options; 1602 1602 } 1603 1604 1605 /** 1606 * return the branch from the version. For example version 2.2.4 is for branch 2.2 1607 */ 1608 function get_branch_from_version($version) 1609 { 1610 return implode('.', array_slice(explode('.', $version), 0, 2)); 1611 } 1603 1612 ?> -
trunk/install.php
r9520 r11511 340 340 pwg_query($query); 341 341 342 conf_update_param('piwigo_db_version', get_branch_from_version(PHPWG_VERSION)); 343 342 344 // fill languages table 343 345 foreach ($languages->fs_languages as $language_code => $fs_language) -
trunk/upgrade.php
r9597 r11511 312 312 $conf['die_on_sql_error'] = false; 313 313 include($upgrade_file); 314 conf_update_param('piwigo_db_version', get_branch_from_version(PHPWG_VERSION)); 314 315 315 316 // Something to add in database.inc.php?
Note: See TracChangeset
for help on using the changeset viewer.