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

8.0.x
Alex Pott 2013-05-29 14:39:03 +01:00
parent dd87cbcf20
commit ee5a04c93b
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class Rss extends StylePluginBase {
* @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.

View File

@ -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');