From 97ca7bdfab9f0bb2e5cbc8f507ee260af1f7d421 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 22 Sep 2010 08:52:48 +0000 Subject: [PATCH] Add Smartphone class Fix: mutualized code --- htdocs/user/passwordforgotten.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index fdfbe9411da..3121751948e 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -146,7 +146,9 @@ $dol_url_root = DOL_URL_ROOT; // Select templates if (class_exists('Smartphone')) { - $template_dir = $smartphone->getTemplateDir(); + // Template directory + $smartphone->getTemplateDir(); + $template_dir = $smartphone->template_dir; } else {