From de71fcebbc576775b711ddee0317746fd0996e50 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 1 Jun 2003 11:57:50 +0000 Subject: [PATCH] Updated author functions. git-svn-id: http://svn.automattic.com/wordpress/trunk@137 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 38 ++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index dfcf18f18a..a02c93ede5 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -253,58 +253,58 @@ function the_weekday_date($before='',$after='') { function the_author() { global $id, $authordata; - $i = $authordata['user_idmode']; - if ($i == 'nickname') echo $authordata['user_nickname']; - if ($i == 'login') echo $authordata['user_login']; - if ($i == 'firstname') echo $authordata['user_firstname']; - if ($i == 'lastname') echo $authordata['user_lastname']; - if ($i == 'namefl') echo $authordata['user_firstname'].' '.$authordata['user_lastname']; - if ($i == 'namelf') echo $authordata['user_lastname'].' '.$authordata['user_firstname']; - if (!$i) echo $authordata['user_nickname']; + $i = $authordata->user_idmode; + if ($i == 'nickname') echo $authordata->user_nickname; + if ($i == 'login') echo $authordata->user_login; + if ($i == 'firstname') echo $authordata->user_firstname; + if ($i == 'lastname') echo $authordata->user_lastname; + if ($i == 'namefl') echo $authordata->user_firstname.' '.$authordata->user_lastname; + if ($i == 'namelf') echo $authordata->user_lastname.' '.$authordata->user_firstname; + if (!$i) echo $authordata->user_nickname; } function the_author_login() { - global $id,$authordata; echo $authordata['user_login']; + global $id,$authordata; echo $authordata->user_login; } function the_author_firstname() { - global $id,$authordata; echo $authordata['user_firstname']; + global $id,$authordata; echo $authordata->user_firstname; } function the_author_lastname() { - global $id,$authordata; echo $authordata['user_lastname']; + global $id,$authordata; echo $authordata->user_lastname; } function the_author_nickname() { - global $id,$authordata; echo $authordata['user_nickname']; + global $id,$authordata; echo $authordata->user_nickname; } function the_author_ID() { - global $id,$authordata; echo $authordata['ID']; + global $id,$authordata; echo $authordata->ID; } function the_author_email() { - global $id,$authordata; echo antispambot($authordata['user_email']); + global $id,$authordata; echo antispambot($authordata->user_email); } function the_author_url() { - global $id,$authordata; echo $authordata['user_url']; + global $id,$authordata; echo $authordata->user_url; } function the_author_icq() { - global $id,$authordata; echo $authordata['user_icq']; + global $id,$authordata; echo $authordata->user_icq; } function the_author_aim() { - global $id,$authordata; echo str_replace(' ', '+', $authordata['user_aim']); + global $id,$authordata; echo str_replace(' ', '+', $authordata->user_aim); } function the_author_yim() { - global $id,$authordata; echo $authordata['user_yim']; + global $id,$authordata; echo $authordata->user_yim; } function the_author_msn() { - global $id,$authordata; echo $authordata['user_msn']; + global $id,$authordata; echo $authordata->user_msn; } function the_author_posts() {