Commit f0371300 authored by Steven Wittens's avatar Steven Wittens

- Oopsie when committing.

parent 300f91f4
......@@ -360,8 +360,9 @@ function block_list($region) {
if ($block['path']) {
$base = parse_url($base_url);
$session = session_name() .'='. session_id();
$url = str_replace(array($base['path'], '?'. $session), '', request_uri());
$matched = preg_match($block['path'], ereg_replace('^/(\?q=)?', '', $path);
$url = str_replace(array($base['path'], '?'. $session), '', request_uri());
$url = ereg_replace('^/(\?q=)?', '', $url);
$matched = preg_match($block['path'], $url);
}
else {
$matched = true;
......
......@@ -360,8 +360,9 @@ function block_list($region) {
if ($block['path']) {
$base = parse_url($base_url);
$session = session_name() .'='. session_id();
$url = str_replace(array($base['path'], '?'. $session), '', request_uri());
$matched = preg_match($block['path'], ereg_replace('^/(\?q=)?', '', $path);
$url = str_replace(array($base['path'], '?'. $session), '', request_uri());
$url = ereg_replace('^/(\?q=)?', '', $url);
$matched = preg_match($block['path'], $url);
}
else {
$matched = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment