From: <sy...@us...> - 2006-11-29 22:16:14
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9188 Modified Files: tiki-edit_blog.php Log Message: [FIX]blog: user creator was broken+move the html to tpl Index: tiki-edit_blog.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-edit_blog.php,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- tiki-edit_blog.php 3 Oct 2006 09:41:54 -0000 1.33 +++ tiki-edit_blog.php 29 Nov 2006 22:16:08 -0000 1.34 @@ -122,22 +122,7 @@ $smarty->assign('use_find', $data["use_find"]); $smarty->assign('maxPosts', $data["maxPosts"]); $smarty->assign('heading', $data["heading"]); - if ($tiki_p_admin_trackers =='y') { - $user_list=$userlib->list_all_users(); - $creators="<select name='creators'>"; - foreach ($user_list as $key => $value) { - $creators.="<option value='$value' "; - if ($value==$data["user"])$creators.=" selected "; - $creators.=">$value</option>"; - } - $creators.="</select>"; - } else { - $creators=$data["user"]; - } - $smarty->assign('creators',$creators); - $smarty->assign('creator',$data["user"]); - if (!isset($_REQUEST["creators"])) - $_REQUEST["creators"]=$data["user"]; + $smarty->assign_by_ref('blog_info', $data); } if (isset($_REQUEST['preview'])) { @@ -175,7 +160,7 @@ $heading = isset($_REQUEST['heading']) ? $_REQUEST['heading'] : ''; $bid = $bloglib->replace_blog($_REQUEST["title"], - $_REQUEST["description"], $_REQUEST["creators"], $public, + $_REQUEST["description"], isset($_REQUEST['user'])?$_REQUEST['user']: $user, $public, $_REQUEST["maxPosts"], $_REQUEST["blogId"], $heading, $use_title, $use_find, $allow_comments, $show_avatar); @@ -191,6 +176,11 @@ die; } +if ($tiki_p_admin_trackers =='y') { + $users = $userlib->list_all_users(); + $smarty->assign_by_ref('users', $users); +} + if (isset($_REQUEST['preview']) || $category_needed) { $smarty->assign('title', $_REQUEST["title"]); |