1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/plugins-dist/urls_etendues/action/urls_actualiser.php
2015-04-28 17:10:23 +02:00

34 lines
1.3 KiB
PHP

<?php
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
* Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
\***************************************************************************/
if (!defined("_ECRIRE_INC_VERSION")) return;
// http://doc.spip.org/@action_instituer_syndic_article_dist
function action_urls_actualiser_dist() {
$securiser_action = charger_fonction('securiser_action', 'inc');
$arg = $securiser_action();
if (!defined('_VAR_URLS')) define('_VAR_URLS',true);
$type = $id = "";
$res = sql_select("type,id_objet","spip_urls","","","type,id_objet");
while ($row = sql_fetch($res)){
if ($row['id_objet']!==$id
OR $row['type']!==$type){
$id = $row['id_objet'];
$type = $row['type'];
generer_url_entite($id,$type,"","",true);
}
}
}
?>