From: x2003bruneau Date: Fri, 9 Feb 2007 23:04:06 +0000 (+0000) Subject: Minor fixes X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c4eee982c36ba9931d94cbfbe5d7743df7cb62e6;p=banana.git Minor fixes git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@198 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index dc29078..06972b2 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -21,7 +21,7 @@ class Banana 'headers' => array('From' => 'Anonymous '), 'display' => 0, 'lastnews' => 0, - 'locale' => 'fr_FR', + 'locale' => 'fr_FR.UTF-8', 'subscribe' => array(), 'autoup' => 1); static public $boxpattern; @@ -304,9 +304,11 @@ class Banana { Banana::$page->setPage('forums'); $groups = Banana::$protocole->getBoxList(Banana::BOXES_SUB, Banana::$profile['lastnews'], true); - $newgroups = Banana::$protocole->getBoxList(Banana::BOXES_NEW, Banana::$profile['lastnews'], true); Banana::$page->assign('groups', $groups); - Banana::$page->assign('newgroups', $newgroups); + if (empty(Banana::$profile['subscribe']) || Banana::$profile['lastnews']) { + $newgroups = Banana::$protocole->getBoxList(Banana::BOXES_NEW, Banana::$profile['lastnews'], true); + Banana::$page->assign('newgroups', $newgroups); + } return true; } diff --git a/banana/message.inc.php b/banana/message.inc.php index 0855eba..935e8c3 100644 --- a/banana/message.inc.php +++ b/banana/message.inc.php @@ -174,7 +174,7 @@ final class BananaMessage extends BananaMimePart static public function formatDate($text) { - return utf8_encode(strftime("%A %d %B %Y, %H:%M (fuseau serveur)", strtotime($text))); + return strftime("%A %d %B %Y, %H:%M (fuseau serveur)", strtotime($text)); } public function translateHeaders() diff --git a/banana/spool.inc.php b/banana/spool.inc.php index 8f8da45..07b2098 100644 --- a/banana/spool.inc.php +++ b/banana/spool.inc.php @@ -392,7 +392,7 @@ class BananaSpool } else { $format = '%a %e %b'; } - return utf8_encode(strftime($format, $stamp)); + return strftime($format, $stamp); } /** displays children tree of a post