mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
@@ -841,7 +841,7 @@ class e_parse extends e_parser
|
|||||||
{
|
{
|
||||||
$text = stripslashes($text);
|
$text = stripslashes($text);
|
||||||
}
|
}
|
||||||
return str_replace(array("'", '"', "<", ">", '+'), array("'", """, "<", ">", '%2B'), $text);
|
return str_replace(array("'", '"', "<", ">"), array("'", """, "<", ">"), $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -76,7 +76,7 @@ class page_search extends e_search // include plugin-folder in the name.
|
|||||||
'name' => "Pages",
|
'name' => "Pages",
|
||||||
'table' => 'page AS p LEFT JOIN #page_chapters AS c ON p.page_chapter = c.chapter_id ',
|
'table' => 'page AS p LEFT JOIN #page_chapters AS c ON p.page_chapter = c.chapter_id ',
|
||||||
'return_fields' => array('p.page_id', 'p.page_title', 'p.page_sef', 'p.page_text', 'p.page_chapter', 'p.page_datestamp', 'p.menu_image'),
|
'return_fields' => array('p.page_id', 'p.page_title', 'p.page_sef', 'p.page_text', 'p.page_chapter', 'p.page_datestamp', 'p.menu_image'),
|
||||||
'search_fields' => array('p.page_title' => '1.2', 'p.page_text' => '0.6', 'p.page_metakeys'=> '1.0'), // fields and their weights.
|
'search_fields' => array('p.page_title' => '1.2', 'p.page_text' => '0.6', 'p.page_metakeys'=> '1.0', 'p.page_fields' => '0.5'), // fields and their weights.
|
||||||
|
|
||||||
'order' => array('page_datestamp' => DESC),
|
'order' => array('page_datestamp' => DESC),
|
||||||
'refpage' => 'page.php'
|
'refpage' => 'page.php'
|
||||||
@@ -145,7 +145,7 @@ class page_search extends e_search // include plugin-folder in the name.
|
|||||||
* Optional - Advanced Where
|
* Optional - Advanced Where
|
||||||
* @param $parm - data returned from $parm (ie. advanced fields included. in this case 'cat' )
|
* @param $parm - data returned from $parm (ie. advanced fields included. in this case 'cat' )
|
||||||
*/
|
*/
|
||||||
function where($parm='')
|
function where($parm=array())
|
||||||
{
|
{
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user