From 32989e14dba16192c69cafa6f69138e597311b27 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Wed, 12 Feb 2003 21:37:56 +0000 Subject: - Fixed blog.module to accept blog/name URLs as well as blog/id - Changed the RewriteRule in .htaccess. - Fixed form_select() matching incorrectly. - Added missing $Id$ to menu.inc --- modules/blog/blog.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/blog') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index f5c2c4112..2c54e3f09 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -149,7 +149,7 @@ function blog_page_user($uid = 0) { global $user, $theme; if ($uid) { - $account = user_load(array("uid" => $uid, "status" => 1)); + $account = user_load(array((is_numeric($uid) ? "uid" : "name") => $uid, "status" => 1)); } else { $account = $user; -- cgit v1.2.3