### Message display ###
static public $msgshow_headers = array('from', 'newsgroups', 'followup-to', 'to', 'cc', 'reply-to',
- 'organization', 'date', 'references', 'in-reply-to');
+ 'organization', 'date');
static public $msgshow_mimeparts = array('multipart/report', 'multipart/mixed',
'text/html', 'text/plain', 'text/enriched', 'text', 'message');
static public $msgshow_xface = true;
}
if (isset($_POST['cancel'])) {
$this->loadSpool($group);
- $ndx = Banana::$spool->getNdX($id) - 1;
if (!Banana::$protocole->cancel($msg)) {
return _b_('Une erreur s\'est produite lors de l\'annulation du message :') . '<br />'
. Banana::$protocole->lastError();
}
- if ($ndx < 50) {
- $ndx = 0;
- }
$this->removeMessage($group, $artid);
- Banana::$page->redirect(Array('group' => $group, 'first' => $ndx));
+ Banana::$page->redirect(Array('group' => $group));
}
Banana::$page->assign_by_ref('message', $msg);
if (php_sapi_name() != 'cli') {
if ($group == @$_SESSION['banana_group'] && isset($_SESSION['banana_spool'])) {
Banana::$spool = unserialize($_SESSION['banana_spool']);
+ unset($_SESSION['banana_spool']);
$clean = @(Banana::$profile['lastnews'] != $_SESSION['banana_lastnews']);
} else {
unset($_SESSION['banana_message']);
return true;
}
- static private function load($file)
+ static public function load($file)
{
$file = strtolower($file) . '.inc.php';
if (!@include_once dirname(__FILE__) . "/$file") {