projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/master' into fusionax
[platal.git]
/
include
/
banana
/
moderate.inc.php
diff --git
a/include/banana/moderate.inc.php
b/include/banana/moderate.inc.php
index
ffc5eb5
..
d789360
100644
(file)
--- a/
include/banana/moderate.inc.php
+++ b/
include/banana/moderate.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
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 *
@@
-25,7
+25,7
@@
require_once 'banana/hooks.inc.php';
function hook_checkcancel($_headers)
{
function hook_checkcancel($_headers)
{
- return ($_headers['x-org-id'] == S::v('hruid') or S::
has_perms
());
+ return ($_headers['x-org-id'] == S::v('hruid') or S::
admin
());
}
function hook_makeLink($params)
}
function hook_makeLink($params)
@@
-59,6
+59,8
@@
class ModerationBanana extends Banana
function __construct(User &$user, $params = null)
{
function __construct(User &$user, $params = null)
{
+ ini_set('memory_limit', '128M');
+
global $globals;
ModerationBanana::$client = $params['client'];
ModerationBanana::$listname = $params['listname'];
global $globals;
ModerationBanana::$client = $params['client'];
ModerationBanana::$listname = $params['listname'];