summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bd05fff)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@303
9869982d-c50d-0410-be91-
f2a2ec7c7c7b
if (!is_null(Banana::$group)) {
$this->registerPage('thread', Banana::$group, null);
if (!is_null(Banana::$artid)) {
if (!is_null(Banana::$group)) {
$this->registerPage('thread', Banana::$group, null);
if (!is_null(Banana::$artid)) {
- $this->registerPage('message', _b_('Message'), null);
+ if (Banana::$spool) {
+ $subject = Banana::$spool->overview[Banana::$artid]->subject;
+ } else if (Banana::$message) {
+ $subject = Banana::$message->getHeaderValue('subject');
+ } else {
+ $subject = _b_('Message');
+ }
+ if (strlen($subject) > 30) {
+ $subject = substr($subject, 0, 30) . '…';
+ }
+ $this->registerPage('message', $subject, null);
if ($this->page == 'cancel') {
$this->registerPage('cancel', _b_('Annulation'), null);
} elseif ($this->page == 'new') {
if ($this->page == 'cancel') {
$this->registerPage('cancel', _b_('Annulation'), null);
} elseif ($this->page == 'new') {