From: Stéphane Jacob Date: Sat, 17 Jul 2010 17:13:35 +0000 (+0200) Subject: Requires googleapps.inc.php when needed in admin page.. X-Git-Tag: xorg/1.0.1~323 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3168041b3d45fa4696ea036ca82f33f9ef877482;p=platal.git Requires googleapps.inc.php when needed in admin page.. Signed-off-by: Stéphane Jacob --- diff --git a/modules/admin.php b/modules/admin.php index 9b5a925..57c4a21 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -435,6 +435,7 @@ class AdminModule extends PLModule } if (!Post::blank('hashpass')) { $to_update['password'] = Post::s('hashpass'); + require_once 'googleapps.inc.php'; $account = new GoogleAppsAccount($user); if ($account->active() && $account->sync_password) { $account->set_password(Post::s('hashpass'));