[SPIP] v3.2.7-->v3.2.9
[lhc/web/www.git] / www / plugins-dist / sites / liens / implicite_site.php
index 1c8d196..7570af3 100644 (file)
@@ -3,20 +3,22 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2013                                                *
+ *  Copyright (c) 2001-2020                                                *
  *  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;
+if (!defined("_ECRIRE_INC_VERSION")) {
+       return;
+}
 
-function liens_implicite_site_dist($texte,$id,$type,$args,$ancre,$connect=''){
-       if (!$id = intval($id))
+function liens_implicite_site_dist($texte, $id, $type, $args, $ancre, $connect = '') {
+       if (!$id = intval($id)) {
                return false;
-       $url = sql_getfetsel('url_site', 'spip_syndic', "id_syndic=".intval($id),'','','','',$connect);
+       }
+       $url = sql_getfetsel('url_site', 'spip_syndic', "id_syndic=" . intval($id), '', '', '', '', $connect);
+
        return $url;
 }
-
-?>
\ No newline at end of file