diff options
author | deva <deva> | 2008-10-26 20:53:16 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-26 20:53:16 +0000 |
commit | 3b5656db543462ec1f126d0d97b1ee1ba25c782e (patch) | |
tree | e85f52b8a361dffa3712baebc08a4000effc3f5c /forum/utils/posts.php | |
parent | d2b6d71dfc8f353d4b56f1b76552f6897493bb6d (diff) |
Added no-cache pragma. Fixed indentation in forum code.
Diffstat (limited to 'forum/utils/posts.php')
-rw-r--r-- | forum/utils/posts.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/forum/utils/posts.php b/forum/utils/posts.php index e9a5d1d..3a2ecc5 100644 --- a/forum/utils/posts.php +++ b/forum/utils/posts.php @@ -45,7 +45,7 @@ class Post { return $result; } - public function show($indent = "", $recurse = true) + public function show($indent = " ", $recurse = true) { global $users, $fid, $tid, $current_user, $client_is_mobile_device; $user = $users->getUser($this->user); @@ -72,7 +72,7 @@ class Post { echo parse($this->message, $indent . " ") . "\n"; if($user->signature != "\n " && $user->signature != "") { echo $indent . " <div class=\"signature\">\n"; - echo parse("\n------------------\n" . $user->signature, $indent . " ") . "\n"; + echo parse("------------------\n" . $user->signature, $indent . " ") . "\n"; echo $indent . " </div>\n"; } echo $indent . " </div>\n"; @@ -184,7 +184,7 @@ class Posts { public function show() { global $current_user; - echo "<h1 id=\"top\">" . $this->thread->name . "</h1>"; + echo " <h1 id=\"top\">" . $this->thread->name . "</h1>\n"; /* // Recursive foreach($this->posts as $post) { @@ -194,14 +194,14 @@ class Posts { // Linear foreach($this->posts_linear as $post) { - $post->show("", false); + $post->show(" ", false); } $this->thread->lastseen[$current_user->uid] = time(); $this->write(); - echo "<p><a href=\"#top\">Back to the top</a></p>"; + echo " <p><a href=\"#top\">Back to the top</a></p>\n"; } private function recurser($parentpost, $element) |