projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes bugs in name edition.
[platal.git]
/
include
/
banana
/
ml.inc.php
diff --git
a/include/banana/ml.inc.php
b/include/banana/ml.inc.php
index
9a3174f
..
2f0b722
100644
(file)
--- a/
include/banana/ml.inc.php
+++ b/
include/banana/ml.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
08
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-19,7
+19,6
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once 'banana/banana.inc.php';
require_once 'banana/hooks.inc.php';
class PlatalBananaMLPage extends PlatalBananaPage
require_once 'banana/hooks.inc.php';
class PlatalBananaMLPage extends PlatalBananaPage
@@
-59,13
+58,11
@@
class MLBanana extends Banana
Banana::$debug_smarty = ($globals->debug & DEBUG_SMARTY);
Banana::$mbox_helper = $globals->banana->mbox_helper;
Banana::$feed_updateOnDemand = true;
Banana::$debug_smarty = ($globals->debug & DEBUG_SMARTY);
Banana::$mbox_helper = $globals->banana->mbox_helper;
Banana::$feed_updateOnDemand = true;
- if (S::
has_perms
()) {
+ if (S::
admin
()) {
Banana::$msgshow_mimeparts[] = 'source';
}
array_push(Banana::$msgparse_headers, 'x-org-id', 'x-org-mail');
Banana::$msgshow_mimeparts[] = 'source';
}
array_push(Banana::$msgparse_headers, 'x-org-id', 'x-org-mail');
- if (!S::v('core_rss_hash')) {
- Banana::$feed_active = false;
- }
+ Banana::$feed_active = S::hasAuthToken();
MLBanana::$listname = $params['listname'];
MLBanana::$domain = $params['domain'];
MLBanana::$listname = $params['listname'];
MLBanana::$domain = $params['domain'];
@@
-83,9
+80,9
@@
class MLBanana extends Banana
Banana::$msgedit_headers['X-Org-Mail'] = $this->user->forlifeEmail();
// Tree color
Banana::$msgedit_headers['X-Org-Mail'] = $this->user->forlifeEmail();
// Tree color
- $req = XDB::query(
"
SELECT tree_unread, tree_read
- FROM
{$globals->banana->table_prefix}profil
s
- WHERE uid=
{?}", S::i('uid'
));
+ $req = XDB::query(
'
SELECT tree_unread, tree_read
+ FROM
forum_profile
s
+ WHERE uid=
{?}', $this->user->id(
));
if (!(list($unread, $read) = $req->fetchOneRow())) {
$unread = 'o';
$read = 'dg';
if (!(list($unread, $read) = $req->fetchOneRow())) {
$unread = 'o';
$read = 'dg';