aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-02-07 05:43:44 +0000
committerrvelices <rv-github@modusoptimus.com>2013-02-07 05:43:44 +0000
commitf66a624576e25d5b13514d3217691fb6657ec5f4 (patch)
treeba78329274ab5f7ac625b3053b44d69fca55a9fb /include/functions.inc.php
parent7956ce1d42f1f7417cc7ccd1f08f434741faff0a (diff)
start the php session before loading plugins in a standard manner (related to bug 2835: )
git-svn-id: http://piwigo.org/svn/trunk@20599 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 5296288ae..bcbab6ad1 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1621,10 +1621,6 @@ function get_branch_from_version($version)
*/
function get_device()
{
- if (session_id() == '')
- {
- session_start();
- }
$device = pwg_get_session_var('device');
if (is_null($device))
@@ -1661,11 +1657,6 @@ function mobile_theme()
return false;
}
- if (session_id() == '')
- {
- session_start();
- }
-
if (isset($_GET['mobile']))
{
$is_mobile_theme = get_boolean($_GET['mobile']);