|
|
|
@ -16,17 +16,15 @@ if (!defined('_ECRIRE_INC_VERSION')) {
|
|
|
|
|
* @param string $version_cible |
|
|
|
|
*/ |
|
|
|
|
function article_accueil_upgrade($nom_meta_base_version, $version_cible) { |
|
|
|
|
include_spip('inc/meta'); |
|
|
|
|
$current_version = '0.0'; |
|
|
|
|
if ((!isset($GLOBALS['meta'][$nom_meta_base_version]) ) |
|
|
|
|
|| (($current_version = $GLOBALS['meta'][$nom_meta_base_version]) != $version_cible)) { |
|
|
|
|
if (version_compare($current_version, '0.1', '<')) { |
|
|
|
|
include_spip('base/create'); |
|
|
|
|
include_spip('base/abstract_sql'); |
|
|
|
|
maj_tables('spip_rubriques'); |
|
|
|
|
ecrire_meta($nom_meta_base_version, $current_version = '0.1', 'non'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$maj = []; |
|
|
|
|
$maj['create'] = [ |
|
|
|
|
['maj_tables', ['spip_rubriques']], |
|
|
|
|
]; |
|
|
|
|
$maj['0.1'] = [ |
|
|
|
|
['maj_tables', ['spip_rubriques']], |
|
|
|
|
]; |
|
|
|
|
include_spip('base/upgrade'); |
|
|
|
|
maj_plugin($nom_meta_base_version, $version_cible, $maj); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|