From: Andrew Dolgov Date: Mon, 21 Dec 2009 13:33:27 +0000 (+0300) Subject: prepare login redirect for mobile/classic X-Git-Tag: 1.4.0~151 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=afb12ed0d0df0d1f2bbbb8b2fb54d245da52eb3d;p=tt-rss.git prepare login redirect for mobile/classic --- diff --git a/functions.php b/functions.php index 9fba3c83..08b4c4b8 100644 --- a/functions.php +++ b/functions.php @@ -4508,11 +4508,16 @@ return true; } - function render_login_form($link, $mobile = false) { - if (!$mobile) { + function render_login_form($link, $mobile = 0) { + switch ($mobile) { + case 0: require_once "login_form.php"; - } else { + break; + case 1: require_once "mobile/login_form.php"; + break; + case 2: + require_once "mobile/classic/login_form.php"; } }