From 2405b41e02f4bd6a2f99e5836d9199dee447eb0f Mon Sep 17 00:00:00 2001 From: patdenice Date: Sat, 18 Feb 2012 21:18:34 +0000 Subject: feature:2577 Automaticaly install smartpocket during install or upgrade. hide mobile theme from themes list on user side. git-svn-id: http://piwigo.org/svn/trunk@13242 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index e1f74baf8..5b05452c0 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -757,7 +757,7 @@ function url_is_remote($url) /** * returns available themes */ -function get_pwg_themes() +function get_pwg_themes($show_mobile=false) { global $conf; @@ -773,6 +773,14 @@ SELECT $result = pwg_query($query); while ($row = pwg_db_fetch_assoc($result)) { + if ($row['id'] == $conf['mobile_theme']) + { + if (!$show_mobile) + { + continue; + } + $row['name'] .= ' ('.l10n('Mobile').')'; + } if (check_theme_installed($row['id'])) { $themes[ $row['id'] ] = $row['name']; -- cgit v1.2.3