summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:26:42 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:26:42 -0400
commite74b020e40a3b9abc505dd9956d12b10560245d9 (patch)
tree167d845b269863d1a39ddd1b84989ce072b16884 /src/views
parent4b8e02f4b69ccb4fd3146983bc7570f6ae13bca0 (diff)
Fix 2 small bugs in Template.class.php
* do a |= instead of = for setting $this->red in Template->link() * don't ever escape the url in Template->url()
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Template.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/views/Template.class.php b/src/views/Template.class.php
index 187e65b..540e4fc 100644
--- a/src/views/Template.class.php
+++ b/src/views/Template.class.php
@@ -82,14 +82,14 @@ class Template {
public function link($target, $text, $return=false) {
$ret = $this->ret;
- $this->ret = $return;
+ $this->ret |= $return;
$str = $this->tag('a', array('href'=>$target), $text);
$this->ret = $ret;
if ($this->ret||$return) return $str;
echo $str;
}
public function url($page) {
- return $this->base.rawurlencode($page);
+ return $this->base.$page;
}
public function row($cells) {