From b66aeabb88951df9a8048ee72e8b6af1b7d63104 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 2 Sep 2012 09:25:40 +0200 Subject: [PATCH] Fix: broken features and uniformize code --- htdocs/core/tpl/passwordforgotten.tpl.php | 19 ++- htdocs/theme/bureau2crea/tpl/login.tpl.php | 152 ++---------------- .../bureau2crea/tpl/passwordforgotten.tpl.php | 18 ++- htdocs/user/passwordforgotten.php | 48 +++--- 4 files changed, 57 insertions(+), 180 deletions(-) diff --git a/htdocs/core/tpl/passwordforgotten.tpl.php b/htdocs/core/tpl/passwordforgotten.tpl.php index 22a012032f8..4b75f4a91b6 100644 --- a/htdocs/core/tpl/passwordforgotten.tpl.php +++ b/htdocs/core/tpl/passwordforgotten.tpl.php @@ -35,10 +35,12 @@ print ''."\n"; if (constant('JS_JQUERY_UI')) print ''."\n"; // JQuery else print ''."\n"; // JQuery // JQuery. Must be before other includes +$ext='.js'; +if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x01)) $ext='.jgz'; print ''."\n"; if (constant('JS_JQUERY')) print ''."\n"; else print ''."\n"; -print ' +print '