includes/functions.php
changeset 978 ed84b24b8e07
parent 963 b572ce1114f1
child 1027 98c052fc3337
equal deleted inserted replaced
977:322a9bf1e280 978:ed84b24b8e07
   109     {
   109     {
   110       $flags .= $sep . 'lang=' . urlencode($_GET['lang']);
   110       $flags .= $sep . 'lang=' . urlencode($_GET['lang']);
   111       $sep = '&';
   111       $sep = '&';
   112     }
   112     }
   113   
   113   
   114     $url = $session->append_sid(contentPath.$t.$flags);
   114     $url = is_object($session) ? $session->append_sid(contentPath.$t.$flags) : contentPath . $t . $flags;
   115     if($query)
   115     if($query)
   116     {
   116     {
   117       $sep = strstr($url, '?') ? '&' : '?';
   117       $sep = strstr($url, '?') ? '&' : '?';
   118       $url = $url . $sep . $query;
   118       $url = $url . $sep . $query;
   119     }
   119     }