/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2014 *
+ * Copyright (c) 2001-2016 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
$arg = $securiser_action();
include_spip('inc/autoriser');
- if (autoriser('modifier',$type,$id)){
- $arg = explode('-',$arg);
- $type = array_shift($arg);
- $id = array_shift($arg);
- $url = implode('-',$arg);
-
+ $arg = explode('-',$arg);
+ $type = array_shift($arg);
+ $id = array_shift($arg);
+ $url = implode('-',$arg);
+ if (autoriser('modifierurl',$type,$id)){
include_spip('action/editer_url');
url_delete($type, $id, $url);
}