aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2012-02-18 21:18:34 +0000
committerpatdenice <patdenice@piwigo.org>2012-02-18 21:18:34 +0000
commit2405b41e02f4bd6a2f99e5836d9199dee447eb0f (patch)
treeca13e5b4e97ee79db78e3646607870cd34350aa8 /include/functions.inc.php
parenta8938827898ed40d35f25b055a72a41a2c1567ef (diff)
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
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php10
1 files changed, 9 insertions, 1 deletions
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'];