$ret[]=Analyzer::formatMessage(t('You have configured display %display with a path which is an path alias as well. This might lead to unwanted effects so better use an internal path.',array('%display'=>$display->display_title)),'warning');
$ret[]=Analyzer::formatMessage(t('You have configured display %display with a path which is an path alias as well. This might lead to unwanted effects so better use an internal path.',array('%display'=>$display['display_title'])),'warning');
@@ -2610,19 +2610,19 @@ public function validate() {
}
if(!$fields){
$errors[]=t('Display "@display" uses fields but there are none defined for it or all are excluded.',array('@display'=>$this->display->display_title));
$errors[]=t('Display "@display" uses fields but there are none defined for it or all are excluded.',array('@display'=>$this->display['display_title']));
}
}
if($this->hasPath()&&!$this->getOption('path')){
$errors[]=t('Display "@display" uses a path but the path is undefined.',array('@display'=>$this->display->display_title));
$errors[]=t('Display "@display" uses a path but the path is undefined.',array('@display'=>$this->display['display_title']));
}
// Validate style plugin
$name=$this->getOption('style_plugin');
$style=$this->getPlugin('style',$name);
if(empty($style)){
$errors[]=t('Display "@display" has an invalid style plugin.',array('@display'=>$this->display->display_title));
$errors[]=t('Display "@display" has an invalid style plugin.',array('@display'=>$this->display['display_title']));
}
else{
$result=$style->validate();
...
...
@@ -2690,8 +2690,8 @@ public function getSpecialBlocks() {
$errors[]=t('Display @display is set to use a parent menu but the parent menu link text is not set.',array('@display'=>$this->display->display_title));
$errors[]=t('Display @display is set to use a parent menu but the parent menu link text is not set.',array('@display'=>$this->display['display_title']));