a l'installation, on charge bigup dans le public, et on passe la taille max à 10M
This commit is contained in:
parent
95245750e5
commit
04246852fb
2 changed files with 51 additions and 5 deletions
49
bigform_administrations.php
Normal file
49
bigform_administrations.php
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
/**
|
||||
* Fichier gérant l'installation et désinstallation du plugin boutique Roc-Ecrins
|
||||
*
|
||||
* @plugin boutique Roc-Ecrins
|
||||
* @copyright 2019
|
||||
* @author tofulm
|
||||
* @licence GNU/GPL
|
||||
* @package SPIP\Rocb\Installation
|
||||
*/
|
||||
|
||||
if (!defined('_ECRIRE_INC_VERSION')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Fonction d'installation et de mise à jour du plugin Bigform
|
||||
*
|
||||
* @param string $nom_meta_base_version
|
||||
* Nom de la meta informant de la version du schéma de données du plugin installé dans SPIP
|
||||
* @param string $version_cible
|
||||
* Version du schéma de données dans ce plugin (déclaré dans paquet.xml)
|
||||
* @return void
|
||||
**/
|
||||
function bigform_upgrade($nom_meta_base_version, $version_cible) {
|
||||
$maj = [];
|
||||
// Configuration par défaut
|
||||
$config_defaut = [
|
||||
'max_file_size' => 10,
|
||||
'charger_public' => 1
|
||||
];
|
||||
|
||||
$maj['create'] = [['ecrire_meta', 'bigup', serialize($config_defaut)]];
|
||||
$maj['1.0.1'] = [['ecrire_meta', 'bigup', serialize($config_defaut)]];
|
||||
|
||||
include_spip('base/upgrade');
|
||||
maj_plugin($nom_meta_base_version, $version_cible, $maj);
|
||||
}
|
||||
/**
|
||||
* Fonction de désinstallation du plugin Big Upload.
|
||||
*
|
||||
* @param string $nom_meta_base_version
|
||||
* Nom de la meta informant de la version du schéma de données du plugin installé dans SPIP
|
||||
* @return void
|
||||
**/
|
||||
function bigform_vider_tables($nom_meta_base_version) {
|
||||
effacer_meta($nom_meta_base_version);
|
||||
}
|
|
@ -1,15 +1,13 @@
|
|||
<paquet
|
||||
prefix="bigform"
|
||||
categorie="edition"
|
||||
version="1.0.4"
|
||||
version="1.0.5"
|
||||
etat="dev"
|
||||
compatibilite="[3.2.5;3.3.*]"
|
||||
logo="prive/themes/spip/images/bigform-64.png"
|
||||
documentation=""
|
||||
schema="1.0.1"
|
||||
>
|
||||
<!--
|
||||
Paquet généré le 2019-12-04 16:30:14
|
||||
-->
|
||||
|
||||
<nom>BigForm</nom>
|
||||
|
||||
|
@ -19,7 +17,6 @@
|
|||
<licence>GNU/GPL</licence>
|
||||
|
||||
<necessite nom="bigup" compatibilite="[1.0.0;[" />
|
||||
<!--<necessite nom="cvtupload" compatibilite="[1.17.0;[" />-->
|
||||
|
||||
<pipeline nom="autoriser" inclure="bigform_autorisations.php" />
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue