Removed obsolete $ in source files

This commit is contained in:
Manuel Cillero 2017-08-29 14:13:02 +02:00
parent a39c010e06
commit e5f2b64d98
146 changed files with 836 additions and 1081 deletions

View file

@ -1,16 +1,15 @@
<?php
// $Id: calendar_plugin_display_ical.inc,v 1.1.2.5 2008/11/25 16:12:36 karens Exp $
/**
* The plugin that handles a feed, such as RSS or atom.
*
* For the most part, feeds are page displays but with some subtle differences.
*/
class calendar_plugin_display_ical extends views_plugin_display_page {
function get_style_type() { return 'ical'; }
function uses_breadcrumb() { return FALSE; }
/**
* Feeds do not go through the normal page theming mechanism. Instead, they
* go through their own little theme function and then return NULL so that
@ -188,23 +187,23 @@ class calendar_plugin_display_ical extends views_plugin_display_page {
$plugin->attach_to($display_id, $this->get_path(), $clone->get_title());
}
}
/**
* Display validation.
*/
function validate() {
$errors = parent::validate();
$arguments = $this->display->handler->get_option('arguments');
$filters = $this->display->handler->get_option('filters');
if (!array_key_exists('date_argument', $arguments) && !array_key_exists('date_filter', $filters)) {
if (empty($this->view->date_info->arg_missing)) {
$errors[] = t("A Calendar period display will not work without a Date argument or a Date filter.");
$errors[] = t("A Calendar period display will not work without a Date argument or a Date filter.");
}
$this->view->date_info->arg_missing = TRUE;
$this->view->date_info->arg_missing = TRUE;
}
if (array_key_exists('date_argument', $arguments) &&
if (array_key_exists('date_argument', $arguments) &&
($arguments['date_argument']['default_action'] != 'default' || $arguments['date_argument']['default_argument_type'] != 'date')) {
if (empty($this->view->date_info->arg_missing_default)) {
$errors[] = calendar_errors('missing_argument_default');
@ -213,6 +212,5 @@ class calendar_plugin_display_ical extends views_plugin_display_page {
}
return $errors;
}
}
}