Commit bc0fe633 authored by metzlerd's avatar metzlerd
Browse files

Fixed problem with frx:renderer=title setting title when used in report

filter syntax. 
parent 34cfb077
...@@ -6,11 +6,12 @@ ...@@ -6,11 +6,12 @@
* *
*/ */
class FrxWebDoc extends FrxDocument { class FrxWebDoc extends FrxDocument {
private $title;
public function render($r, $format, $options=array()) { public function render($r, $format, $options=array()) {
// Set title based on report. // Set title based on report.
if ($r->title) { if ($r->title) {
drupal_set_title(filter_xss($r->title)); $this->title = $r->title;
//drupal_set_title(filter_xss($r->title));
} }
// Add Style attribute from header // Add Style attribute from header
...@@ -77,5 +78,12 @@ class FrxWebDoc extends FrxDocument { ...@@ -77,5 +78,12 @@ class FrxWebDoc extends FrxDocument {
return $output; return $output;
} }
public function output($output) {
if ($this->title) {
drupal_set_title(filter_xss($this->title));
}
return FALSE;
}
} }
\ No newline at end of file
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