X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fbanana%2Fmoderate.inc.php;h=a6439b089b522b5ffbaf3a6161868d854e8d34bc;hb=aa6c6ed4cb8d69f8f552a4f3641ae5f8627933f3;hp=9e5588ab001447fa0e04606d8c5ce47224e10649;hpb=d0edeb70f254ed642b59c7c3636b7802266bcfe4;p=platal.git diff --git a/include/banana/moderate.inc.php b/include/banana/moderate.inc.php index 9e5588a..a6439b0 100644 --- a/include/banana/moderate.inc.php +++ b/include/banana/moderate.inc.php @@ -25,7 +25,7 @@ require_once 'banana/hooks.inc.php'; function hook_checkcancel($_headers) { - return ($_headers['x-org-id'] == S::v('forlife') or S::has_perms()); + return ($_headers['x-org-id'] == S::v('hruid') or S::has_perms()); } function hook_makeLink($params) @@ -57,7 +57,7 @@ class ModerationBanana extends Banana static public $domain; static public $client; - function __construct($forlife, $params = null) + function __construct(User &$user, $params = null) { ini_set('memory_limit', '128M');