From d21e28f6f63c177dce8a2db3ebb93009b6f6d226 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 24 May 2011 15:39:07 +1000 Subject: a bit of optimization --- inc/display.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/display.php') 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('
', ' ', $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); -- cgit v1.3