From ef43f485756937627f657664a2a7c7f5364e8a53 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 21 Oct 2000 13:59:27 +0000 Subject: A bunch of internal changes: - better organisation of include files - renamed a few function to make more sense - small bugfix in the user account registration - ... --- includes/function.inc | 5 +---- includes/template.inc | 6 +++--- includes/theme.inc | 3 +++ 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'includes') diff --git a/includes/function.inc b/includes/function.inc index 5c1a3615a..ec3ad0a90 100644 --- a/includes/function.inc +++ b/includes/function.inc @@ -1,8 +1,5 @@ $address" : format_data($address); } diff --git a/includes/template.inc b/includes/template.inc index 5cb6c84d1..0190d4293 100644 --- a/includes/template.inc +++ b/includes/template.inc @@ -1,5 +1,4 @@ article) ? "[ id\">hlcolor2\">read more | ". strlen($story->article) ." bytes | id\">hlcolor2\">". format_plural($story->comments, "comment", "comments") ." ]" : "[ id\">hlcolor2\">". format_plural($story->comments, "comment", "comments") ." ]"; @@ -61,7 +60,7 @@ function display_old_headlines($theme, $num = 10) { function display_comment_moderation($id, $author, $score, $votes) { global $user, $comment_votes; - if ($user->userid && $user->userid != $author && !user_getHistory($user->history, "c$id")) { + if ($user->id && $user->userid != $author && !user_getHistory($user->history, "c$id")) { $output .= "\n"; @@ -106,7 +105,8 @@ function display_calendar($theme, $date) { function display_account($theme) { global $user; - if ($user && $user->userid) { + if ($user->id) { + function submission_number() { $result = db_query("SELECT COUNT(id) FROM stories WHERE status = 1"); return ($result) ? db_result($result, 0) : 0; diff --git a/includes/theme.inc b/includes/theme.inc index 93c6b62ff..0251f3d81 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1,8 +1,11 @@