source: spip-zone/_plugins_/microblog/microblog_fonctions.php @ 39867

Last change on this file since 39867 was 39867, checked in by fil@…, 10 years ago

corriger le bug missing argument 6 (audrey) http://www.spip-contrib.net/Microblog,3051#forum432700

File size: 578 bytes
Line 
1<?php
2/*
3 * Plugin spip|microblog
4 * (c) Fil 2009-2010
5 *
6 * envoyer des micromessages depuis SPIP vers twitter ou laconica
7 * distribue sous licence GNU/LGPL
8 *
9 */
10
11function generer_url_microblog($id, $entite='article', $args='', $ancre='', $public=true, $type=null){
12        include_spip('inc/filtres_mini');
13        $config = unserialize($GLOBALS['meta']['microblog']);
14
15        if (!$public
16         OR $entite!=='article'
17         OR !$config['short_url'])
18                return url_absolue(generer_url_entite($id, $entite, $args, $ancre, $public, $type));
19        else
20                return $GLOBALS['meta']['adresse_site'].'/'.$id;
21}
22
23
24?>
Note: See TracBrowser for help on using the repository browser.