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
This commit is contained in:
patdenice
2012-02-18 21:18:34 +00:00
parent a893882789
commit 2405b41e02
6 changed files with 52 additions and 5 deletions
+9 -1
View File
@@ -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'];