[Phpbbkb-checkins] SF.net SVN: phpbbkb: [62] main/trunk
Status: Alpha
Brought to you by:
markthedaemon
|
From: <so...@us...> - 2007-02-24 13:59:26
|
Revision: 62
http://svn.sourceforge.net/phpbbkb/?rev=62&view=rev
Author: softphp
Date: 2007-02-24 05:59:19 -0800 (Sat, 24 Feb 2007)
Log Message:
-----------
-Fixing bug #15, #16, #17
Modified Paths:
--------------
main/trunk/includes/functions_kb.php
main/trunk/kb.php
Modified: main/trunk/includes/functions_kb.php
===================================================================
--- main/trunk/includes/functions_kb.php 2007-02-23 20:20:42 UTC (rev 61)
+++ main/trunk/includes/functions_kb.php 2007-02-24 13:59:19 UTC (rev 62)
@@ -827,7 +827,7 @@
// Output confirmation page
//
$template->set_filenames(array(
- 'confirm_body' => 'confirm_body.tpl')
+ 'body' => 'confirm_body.tpl')
);
$template->assign_vars(array(
@@ -840,8 +840,6 @@
'S_CONFIRM_ACTION' => append_sid("kb." . $phpEx . "?ucp=delete_article"),
'S_HIDDEN_FIELDS' => $s_hidden_fields)
);
-
- $template->pparse('confirm_body');
}
else
{
@@ -856,7 +854,7 @@
// Obtain categories then delete
$sql = "SELECT c.cat_id, ca.cat_id
FROM " . KB_ARTICLECATS_TABLE . " c, " . KB_CATEGORIES_TABLE . " ca
- WHERE c.article_id = '$id'
+ WHERE c.article_id = '$article_id'
AND ca.cat_id = c.cat_id";
if( !($result = $db->sql_query($sql)) )
{
Modified: main/trunk/kb.php
===================================================================
--- main/trunk/kb.php 2007-02-23 20:20:42 UTC (rev 61)
+++ main/trunk/kb.php 2007-02-24 13:59:19 UTC (rev 62)
@@ -270,7 +270,7 @@
$sql = "SELECT a.*, u.*
FROM " . KB_ARTICLES_TABLE . " a, " . USERS_TABLE . " u
- WHERE a.article_title LIKE '$article_query'
+ WHERE a.article_title LIKE %'$article_query'%
AND a.article_author = u.user_id";
if( !($result = $db->sql_query($sql)) )
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|