|
|
|
@ -209,65 +209,3 @@ function site_modifier($id_syndic, $set = null) {
|
|
|
|
|
|
|
|
|
|
return $err; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fonctions Dépréciées |
|
|
|
|
// -------------------- |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Insérer un site |
|
|
|
|
* |
|
|
|
|
* @deprecated Utiliser site_inserer() |
|
|
|
|
* @uses site_inserer() |
|
|
|
|
* |
|
|
|
|
* @param int $id_rubrique |
|
|
|
|
* @return int |
|
|
|
|
**/ |
|
|
|
|
function insert_syndic($id_rubrique) { |
|
|
|
|
return site_inserer($id_rubrique); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Modifier un site |
|
|
|
|
* |
|
|
|
|
* @deprecated Utiliser site_modifier() |
|
|
|
|
* @uses site_modifier() |
|
|
|
|
* |
|
|
|
|
* @param int $id_syndic |
|
|
|
|
* @param array|bool $set |
|
|
|
|
* @return string |
|
|
|
|
**/ |
|
|
|
|
function syndic_set($id_syndic, $set = false) { |
|
|
|
|
return site_modifier($id_syndic, $set); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Créer une révision d'un site |
|
|
|
|
* |
|
|
|
|
* @deprecated Utiliser site_modifier() |
|
|
|
|
* @uses site_modifier() |
|
|
|
|
* |
|
|
|
|
* @param int $id_syndic |
|
|
|
|
* @param array|bool $set |
|
|
|
|
* @return string |
|
|
|
|
**/ |
|
|
|
|
function revisions_sites($id_syndic, $set = false) { |
|
|
|
|
return site_modifier($id_syndic, $set); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Instituer un site |
|
|
|
|
* |
|
|
|
|
* @deprecated Utiliser objet_instituer() |
|
|
|
|
* @uses objet_instituer() |
|
|
|
|
* |
|
|
|
|
* @param int $id_syndic |
|
|
|
|
* @param array $c |
|
|
|
|
* @param bool $calcul_rub |
|
|
|
|
* @return string |
|
|
|
|
**/ |
|
|
|
|
function instituer_syndic($id_syndic, $c, $calcul_rub = true) { |
|
|
|
|
include_spip('action/editer_objet'); |
|
|
|
|
|
|
|
|
|
return objet_instituer('site', $id_syndic, $c, $calcul_rub); |
|
|
|
|
} |
|
|
|
|