Actually set the cookie prefix

When COOKIE_PREFIX was not shm (the default) the script tried to read cookies prefixed with the new prefix but the script was setting the old default prefix from before the constants were implemented.
This commit is contained in:
HungryFeline 2013-07-02 06:46:54 +02:00
parent 616aa3300a
commit 65fcbcb9ba

View File

@ -713,7 +713,7 @@ function get_prefixed_cookie(/*string*/ $name) {
*/ */
function set_prefixed_cookie($name, $value, $time, $path) { function set_prefixed_cookie($name, $value, $time, $path) {
global $config; global $config;
$full_name = $config->get_string('cookie_prefix','shm')."_".$name; $full_name = COOKIE_PREFIX."_".$name;
setcookie($full_name, $value, $time, $path); setcookie($full_name, $value, $time, $path);
} }