Commit ee5a04c9 authored by alexpott's avatar alexpott

Issue #2002902 by laszlocore, marlatt: Rename Views method get_description() to getDescription().

parent dd87cbcf
......@@ -98,7 +98,7 @@ function get_channel_elements() {
* @return string
* The string containing the description with the tokens replaced.
*/
function get_description() {
public function getDescription() {
$description = $this->options['description'];
// Allow substitutions from the first row.
......
......@@ -972,7 +972,7 @@ function template_preprocess_views_view_rss(&$vars) {
// The RSS 2.0 "spec" doesn't indicate HTML can be used in the description.
// We strip all HTML tags, but need to prevent double encoding from properly
// escaped source data (such as &amp becoming &).
$vars['description'] = check_plain(decode_entities(strip_tags($style->get_description())));
$vars['description'] = check_plain(decode_entities(strip_tags($style->getDescription())));
if ($view->display_handler->getOption('sitename_title')) {
$title = $config->get('name');
......
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