From fb514b928c9f42ca0bfa7d98d66fe154a0e7d034 Mon Sep 17 00:00:00 2001
From: Alan Garcia
Date: Tue, 16 Oct 2012 09:21:00 +0000
Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20bouton=20pour=20"upgrader"=20les?=
=?UTF-8?q?=20quotas=20des=20membres=20lorsqu'on=20a=20modifi=C3=A9=20les?=
=?UTF-8?q?=20quotas=20du=20profil.=20Fix=20#1317?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
bureau/admin/adm_defquotas.php | 15 ++++++++++++---
bureau/class/m_quota.php | 16 ++++++++++++++++
2 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/bureau/admin/adm_defquotas.php b/bureau/admin/adm_defquotas.php
index ad0ff2ca..cb5cacb1 100644
--- a/bureau/admin/adm_defquotas.php
+++ b/bureau/admin/adm_defquotas.php
@@ -35,6 +35,10 @@ if (!$admin->enabled) {
__("This page is restricted to authorized staff");
exit();
}
+$fields = array (
+ "synchronise" => array ("get", "integer", "0"),
+);
+getFields($fields);
include_once ("head.php");
@@ -43,10 +47,14 @@ include_once ("head.php");
$error
";
- }
+if ($synchronise==true) {
+ $quota->synchronise_user_profile();
+ echo "";__("User's quotas synchronised");echo "
";
+}
+if (isset($error) && $error) {
+ echo "$error
";
+}
?>