From 8c629a7395f160d12e213e198066832d2cebbea4 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 21 Sep 2012 09:15:26 +0000 Subject: merge r18116 from branch 2.4 to trunk 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/trunk@18117 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/no_photo_yet.inc.php | 4 ++++ 1 file changed, 4 insertions(+) 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']) -- cgit v1.2.3