mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
content: added table prefix in db_select_gen
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/handlers/content_class.php,v $
|
||||||
| $Revision: 1.6 $
|
| $Revision: 1.7 $
|
||||||
| $Date: 2007-01-15 14:00:21 $
|
| $Date: 2007-01-17 14:04:31 $
|
||||||
| $Author: lisa_ $
|
| $Author: lisa_ $
|
||||||
+---------------------------------------------------------------+
|
+---------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -707,8 +707,8 @@ class content{
|
|||||||
global $plugintable, $sql;
|
global $plugintable, $sql;
|
||||||
$qry = "
|
$qry = "
|
||||||
SELECT c.*, p.*
|
SELECT c.*, p.*
|
||||||
FROM pcontent as c
|
FROM #pcontent as c
|
||||||
LEFT JOIN pcontent as p ON p.content_id = c.content_parent
|
LEFT JOIN #pcontent as p ON p.content_id = c.content_parent
|
||||||
WHERE c.content_id = '".intval($id)."' ";
|
WHERE c.content_id = '".intval($id)."' ";
|
||||||
$sql -> db_Select_gen($qry);
|
$sql -> db_Select_gen($qry);
|
||||||
$row2 = $sql -> db_Fetch();
|
$row2 = $sql -> db_Fetch();
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/search/search_parser.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/search/search_parser.php,v $
|
||||||
| $Revision: 1.1.1.1 $
|
| $Revision: 1.2 $
|
||||||
| $Date: 2006-12-02 04:35:08 $
|
| $Date: 2007-01-17 14:05:19 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: lisa_ $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -58,19 +58,19 @@ function search_content($row) {
|
|||||||
if($row['content_parent'] == '0'){
|
if($row['content_parent'] == '0'){
|
||||||
$qry = "
|
$qry = "
|
||||||
SELECT c.content_heading
|
SELECT c.content_heading
|
||||||
FROM pcontent as c
|
FROM #pcontent as c
|
||||||
WHERE c.content_id = '".$row['content_id']."' ";
|
WHERE c.content_id = '".$row['content_id']."' ";
|
||||||
}elseif(strpos($row['content_parent'], "0.") !== FALSE){
|
}elseif(strpos($row['content_parent'], "0.") !== FALSE){
|
||||||
$tmp = explode(".", $row['content_parent']);
|
$tmp = explode(".", $row['content_parent']);
|
||||||
$qry = "
|
$qry = "
|
||||||
SELECT c.content_heading
|
SELECT c.content_heading
|
||||||
FROM pcontent as c
|
FROM #pcontent as c
|
||||||
WHERE c.content_id = '".intval($tmp[1])."' ";
|
WHERE c.content_id = '".intval($tmp[1])."' ";
|
||||||
}else{
|
}else{
|
||||||
$qry = "
|
$qry = "
|
||||||
SELECT c.*, p.*
|
SELECT c.*, p.*
|
||||||
FROM pcontent as c
|
FROM #pcontent as c
|
||||||
LEFT JOIN pcontent as p ON p.content_id = c.content_parent
|
LEFT JOIN #pcontent as p ON p.content_id = c.content_parent
|
||||||
WHERE c.content_id = '".$row['content_id']."' ";
|
WHERE c.content_id = '".$row['content_id']."' ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user