aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
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'];