X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fbanana%2Fbanana.inc.php;h=722da8f99910b18eda976f6733eab373be853da2;hb=3845b13170e776ed0a52943edd22f8e866aec4df;hp=a28d1c89732516a6e1ba9211ad7381abdc83e4d8;hpb=a8f6aabbf8d4292b6fd2ac637c98a95a4e59cd50;p=platal.git
diff --git a/modules/banana/banana.inc.php b/modules/banana/banana.inc.php
index a28d1c8..722da8f 100644
--- a/modules/banana/banana.inc.php
+++ b/modules/banana/banana.inc.php
@@ -27,7 +27,7 @@ function hook_formatDisplayHeader($_header, $_text) {
$id = $banana->post->headers['x-org-id'];
$_text = formatFrom($_text);
return $_text . ' '
- . '';
+ . '
';
}
}
@@ -41,8 +41,24 @@ function hook_shortcuts()
'Préférences'));
}
+function hook_browsingAction()
+{
+ global $platal, $banana;
+ $page = $banana->state['page'];
+ if ((@$page != 'message' && @$page != 'group' && @$page != 'forums')
+ || $banana->profile['autoup']) {
+ return null;
+ }
+ return '
' + . 'path . '", "updateall", 1)\'>' + . 'Marquer tous les messages comme lus' + . '' + . '
'; +} + function hook_makeLink($params) { - $base = 'banana'; + global $globals; + $base = $globals->baseurl . '/banana'; if ($params['subscribe'] == 1) { return $base . '/subscription'; } @@ -95,9 +111,9 @@ function hook_getSubject(&$subject) $subject = $matches[1]; global $banana; if ($banana->state['group'] == $matches[2]) { - return ' [=> ' . $matches[2] . ']'; + return ' [=> ' . $matches[2] . ']'; } else { - return ' [=> ' . makeHREF(array('group' => $matches[2]), $matches[2]) . ']'; + return ' [=> ' . makeHREF(array('group' => $matches[2]), $matches[2]) . ']'; } } return null;