dépôts
/
lhc
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git]
/
www
/
plugins-dist
/
sites
/
puce_statut
/
site.php
diff --git
a/www/plugins-dist/sites/puce_statut/site.php
b/www/plugins-dist/sites/puce_statut/site.php
index
de513a4
..
6dd4b05
100644
(file)
--- a/
www/plugins-dist/sites/puce_statut/site.php
+++ b/
www/plugins-dist/sites/puce_statut/site.php
@@
-10,17
+10,19
@@
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
\***************************************************************************/
* 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;
+}
// https://code.spip.net/@puce_statut_site_dist
// https://code.spip.net/@puce_statut_site_dist
-function puce_statut_site_dist($id, $statut, $id_rubrique, $type, $ajax
='', $menu_rapide=_ACTIVER_PUCE_RAPIDE)
{
+function puce_statut_site_dist($id, $statut, $id_rubrique, $type, $ajax
= '', $menu_rapide = _ACTIVER_PUCE_RAPIDE)
{
- $t = sql_getfetsel("syndication", "spip_syndic", "id_syndic="
.
intval($id));
+ $t = sql_getfetsel("syndication", "spip_syndic", "id_syndic="
.
intval($id));
// cas particulier des sites en panne de syndic :
// on envoi une puce speciale, et pas de menu de changement rapide
// cas particulier des sites en panne de syndic :
// on envoi une puce speciale, et pas de menu de changement rapide
- if ($t == 'off'
OR
$t == 'sus') {
+ if ($t == 'off'
or
$t == 'sus') {
switch ($statut) {
case 'publie':
$puce = 'puce-verte-anim.gif';
switch ($statut) {
case 'publie':
$puce = 'puce-verte-anim.gif';
@@
-36,11
+38,9
@@
function puce_statut_site_dist($id, $statut, $id_rubrique, $type, $ajax='', $men
$title = _T('sites:info_site_refuse');
break;
}
$title = _T('sites:info_site_refuse');
break;
}
+
return http_img_pack($puce, $title);
return http_img_pack($puce, $title);
+ } else {
+ return puce_statut_changement_rapide($id, $statut, $id_rubrique, $type, $ajax, $menu_rapide);
}
}
- else
- return puce_statut_changement_rapide($id,$statut,$id_rubrique,$type,$ajax,$menu_rapide);
}
}
-
-
-?>
\ No newline at end of file