Commit c293add6 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1465462: Fixing missing variable error on cookieconsent page"

parents 0f6977da 31f4da8e
...@@ -34,9 +34,10 @@ defined('INTERNAL') || die(); ...@@ -34,9 +34,10 @@ defined('INTERNAL') || die();
function get_cookieconsent_code() { function get_cookieconsent_code() {
global $THEME; global $THEME;
$stylesheets = '';
if ($links = $THEME->get_url('style/cookieconsent.css', true)) { if ($links = $THEME->get_url('style/cookieconsent.css', true)) {
$links = array_reverse($links); $links = array_reverse($links);
$stylesheets = '';
foreach ($links as $link) { foreach ($links as $link) {
$stylesheets .= '<link rel="stylesheet" type="text/css" href="' . $link . '">' . "\n"; $stylesheets .= '<link rel="stylesheet" type="text/css" href="' . $link . '">' . "\n";
} }
......
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