aboutsummaryrefslogtreecommitdiffstats
path: root/include/no_photo_yet.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-09-21 09:14:16 +0000
committerplegall <plg@piwigo.org>2012-09-21 09:14:16 +0000
commit49d958e03fc82a04f97a412d7b75a25245e190a5 (patch)
treecfb92093caa35a9104468d255649b336f7c41777 /include/no_photo_yet.inc.php
parent36d14b9766a9e47f848470214ee3481f415ec42f (diff)
bug 2752 fixed: make sure we don't use the mobile theme with the no_photo_yet feature
git-svn-id: http://piwigo.org/svn/branches/2.4@18116 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/no_photo_yet.inc.php')
-rw-r--r--include/no_photo_yet.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/no_photo_yet.inc.php b/include/no_photo_yet.inc.php
index db347d9d6..92353dc76 100644
--- a/include/no_photo_yet.inc.php
+++ b/include/no_photo_yet.inc.php
@@ -41,6 +41,10 @@ SELECT
list($nb_photos) = pwg_db_fetch_row(pwg_query($query));
if (0 == $nb_photos)
{
+ // make sure we don't use the mobile theme, which is not compatible with
+ // the "no photo yet" feature
+ $template = new Template(PHPWG_ROOT_PATH.'themes', $user['theme']);
+
if (isset($_GET['no_photo_yet']))
{
if ('browse' == $_GET['no_photo_yet'])