diff options
| author | Sean Lee <seannerd@users.sourceforge.net> | 2006-02-24 23:14:23 +0000 |
|---|---|---|
| committer | Sean Lee <seannerd@users.sourceforge.net> | 2006-02-24 23:14:23 +0000 |
| commit | b3cea56cf3ecfabc2651cc2631d6c4d68fda3d40 (patch) | |
| tree | ffedb3eb526f92402bf6533340ff358d7501bdf0 | |
| parent | 5289064b9c789c53b941876bdb44ab202958791d (diff) | |
| download | search-b3cea56cf3ecfabc2651cc2631d6c4d68fda3d40.tar.gz search-b3cea56cf3ecfabc2651cc2631d6c4d68fda3d40.tar.bz2 search-b3cea56cf3ecfabc2651cc2631d6c4d68fda3d40.zip | |
Update to delete_index_content_type function. Location field no longer available - using link to liberty content now.
| -rw-r--r-- | refresh_functions.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/refresh_functions.php b/refresh_functions.php index 6d9e8da..59c7a33 100644 --- a/refresh_functions.php +++ b/refresh_functions.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_search/refresh_functions.php,v 1.22 2006/02/24 20:09:57 seannerd Exp $ + * $Header: /cvsroot/bitweaver/_bit_search/refresh_functions.php,v 1.23 2006/02/24 23:14:23 seannerd Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: refresh_functions.php,v 1.22 2006/02/24 20:09:57 seannerd Exp $ + * $Id: refresh_functions.php,v 1.23 2006/02/24 23:14:23 seannerd Exp $ * @author Luis Argerich (lrargerich@yahoo.com) * @package search * @subpackage functions @@ -169,7 +169,8 @@ function delete_index_content_type($pContentType) { $sql = "DELETE FROM `" . BIT_DB_PREFIX . "searchindex`"; $array = array(); if ( $pContentType <> "pages" ) { - $sql .= " WHERE `location`=?"; + $sql .= " WHERE `content_id` IN (SELECT content_id FROM `" . BIT_DB_PREFIX . + "liberty_content` where `content_type_guid` = ?)"; $array = array($pContentType); } $gBitSystem->mDb->query( $sql, $array ); |
