Commit 5cd1a5fb authored by alexpott's avatar alexpott
Browse files

Issue #2002504 by endorn, heddn: Rename Views method gather_headers() to gatherHeaders().

parent 4c40f821
......@@ -130,7 +130,7 @@ public function cacheSet($type) {
break;
case 'output':
$this->storage['output'] = $this->view->display_handler->output;
$this->gather_headers();
$this->gatherHeaders();
cache($this->table)->set($this->generateOutputKey(), $this->storage, $this->cacheSetExpire($type));
break;
}
......@@ -210,7 +210,7 @@ function post_render(&$output) { }
* Start caching the html head.
*
* This takes a snapshot of the current system state so that we don't
* duplicate it. Later on, when gather_headers() is run, this information
* duplicate it. Later on, when gatherHeaders() is run, this information
* will be removed so that we don't hold onto it.
*
* @see drupal_add_html_head()
......@@ -222,7 +222,7 @@ public function cacheStart() {
/**
* Gather the JS/CSS from the render array, the html head from the band data.
*/
function gather_headers() {
protected function gatherHeaders() {
// Simple replacement for head
if (isset($this->storage['head'])) {
$this->storage['head'] = str_replace($this->storage['head'], '', drupal_add_html_head());
......
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