diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-05-24 15:39:07 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-05-24 15:39:07 +1000 |
| commit | d21e28f6f63c177dce8a2db3ebb93009b6f6d226 (patch) | |
| tree | 9965c4f23e4840421ac53e0d8ca0d9a6f9228592 /inc/display.php | |
| parent | af142bb7021e10fbe7ca381cf0f96cfa7d780b2e (diff) | |
a bit of optimization
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/display.php b/inc/display.php index 38ab67a6..7b711501 100644 --- a/inc/display.php +++ b/inc/display.php @@ -102,7 +102,7 @@ global $config; if(!isset($len)) - $len = $config['mod']['snippet_length']; + $len = &$config['mod']['snippet_length']; // Replace line breaks with some whitespace $body = str_replace('<br/>', ' ', $body); @@ -188,7 +188,7 @@ class Post { public function __construct($id, $thread, $subject, $email, $name, $trip, $capcode, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $embed, $root=null, $mod=false) { global $config; - if(!isset($root)) $root = $config['root']; + if(!isset($root)) $root = &$config['root']; $this->id = $id; $this->thread = $thread; @@ -368,7 +368,7 @@ class Thread { public function __construct($id, $subject, $email, $name, $trip, $capcode, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $locked, $embed, $root=null, $mod=false, $hr=true) { global $config; - if(!isset($root)) $root = $config['root']; + if(!isset($root)) $root = &$config['root']; $this->id = $id; $this->subject = utf8tohtml($subject); |
