summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-07 07:31:11 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-07 07:31:11 +0000
commitae359b50e0704df00111cdb02a2c16a81a0e5996 (patch)
treeb38ea05675029f122cf42418edad46353043e79b
parent936decb437cbb19799dcae255af1d4425a850ae3 (diff)
Use get_object_vars to simplify code
-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();
}
}