summaryrefslogtreecommitdiff
path: root/core/libraries/Block.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/Block.php')
-rw-r--r--core/libraries/Block.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/libraries/Block.php b/core/libraries/Block.php
index 25a0689b..b6b77780 100644
--- a/core/libraries/Block.php
+++ b/core/libraries/Block.php
@@ -23,10 +23,6 @@ class Block_Core {
public $content = null;
public function __toString() {
- $v = new View("block.html");
- $v->id = $this->id;
- $v->title = $this->title;
- $v->content = $this->content;
- return $v->__toString();
+ return View::factory("block.html", get_object_vars($this))->__toString();
}
}