Last change
on this file since 104864 was
104864,
checked in by kent1@…, 4 years ago
|
Version 1.4.4
- Remettre la table
spip_linkchecks en table principale sinon l'autoincrement ne se fait pas.
- Fonction d'upgrade qui permet de corriger ce problème sur des versions buggées déjà installées
- Enlever la table
spip_linkchecks de la liste des tables à traiter
|
File size:
515 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('_ECRIRE_INC_VERSION')) { |
---|
4 | return; |
---|
5 | } |
---|
6 | |
---|
7 | function action_linkcheck_reinit_dist() { |
---|
8 | include_spip('inc/autoriser'); |
---|
9 | include_spip('inc/config'); |
---|
10 | |
---|
11 | if (autoriser('reinitialiser', 'linkcheck')) { |
---|
12 | sql_delete('spip_linkchecks'); |
---|
13 | sql_delete('spip_linkchecks_liens'); |
---|
14 | ecrire_config('linkcheck_dernier_id_objet', 0); |
---|
15 | ecrire_config('linkcheck_dernier_objet', 0); |
---|
16 | } |
---|
17 | |
---|
18 | if ($redirect = _request('redirect')) { |
---|
19 | include_spip('inc/headers'); |
---|
20 | redirige_par_entete($redirect.'&message=delete_ok'); |
---|
21 | } |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.