Small modif

This commit is contained in:
Sébastien Lucas 2013-10-03 09:05:38 +02:00
parent e3bf13ab47
commit 69614a0291

View file

@ -10,6 +10,7 @@ define ("VERSION", "0.7.0beta");
define ("DB", "db"); define ("DB", "db");
date_default_timezone_set($config['default_timezone']); date_default_timezone_set($config['default_timezone']);
function useServerSideRendering () { function useServerSideRendering () {
global $config; global $config;
return preg_match("/" . $config['cops_server_side_render'] . "/", $_SERVER['HTTP_USER_AGENT']); return preg_match("/" . $config['cops_server_side_render'] . "/", $_SERVER['HTTP_USER_AGENT']);