Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -11,7 +11,7 @@
|
||||
namespace IPS\core\api;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -36,7 +36,7 @@ class _search extends \IPS\Api\Controller
|
||||
* @apiparam int search_min_comments Minimum number of comments search results must have for content types that support comments
|
||||
* @apiparam int search_min_replies Minimum number of comments search results must have for content types that require the first comment (e.g. topics)
|
||||
* @apiparam int search_min_reviews Minimum number of reviews search results must have
|
||||
* @apiparam int search_min_views Minimum number of views search results must have
|
||||
* @apiparam int search_min_views Minimum number of views search results must have (note, not supported by elasticsearch)
|
||||
* @apiparam string author Restrict searches to results posted by this member (name)
|
||||
* @apiparam string club Comma-separated list of club IDs to restrict searches to
|
||||
* @apiparam string start_before Date period (from current time) that search results should start before
|
||||
@@ -48,6 +48,7 @@ class _search extends \IPS\Api\Controller
|
||||
* @apiparam string search_and_or Whether to perform an "and" search or an "or" search for all search terms
|
||||
* @apiparam string search_in Specify "titles" to search in titles only, otherwise titles and content are both searched
|
||||
* @apiparam int search_as Member ID to perform the search as (guest permissions will be used when this parameter is omitted)
|
||||
* @apiparam bool doNotTrack If doNotTrack is passed with a value of 1, the search will not be tracked for statistical purposes
|
||||
* @return array
|
||||
* @apiresponse int page api_int_page
|
||||
* @apiresponse int perPage api_int_perpage
|
||||
@@ -201,7 +202,7 @@ class _search extends \IPS\Api\Controller
|
||||
$flags = ( isset( \IPS\Request::i()->eitherTermsOrTags ) and \IPS\Request::i()->eitherTermsOrTags === 'and' ) ? \IPS\Content\Search\Query::TERM_AND_TAGS : \IPS\Content\Search\Query::TERM_OR_TAGS;
|
||||
$operator = NULL;
|
||||
|
||||
if ( isset( \IPS\Request::i()->search_and_or ) and in_array( \IPS\Request::i()->search_and_or, array( \IPS\Content\Search\Query::OPERATOR_OR, \IPS\Content\Search\Query::OPERATOR_AND ) ) )
|
||||
if ( isset( \IPS\Request::i()->search_and_or ) and \in_array( \IPS\Request::i()->search_and_or, array( \IPS\Content\Search\Query::OPERATOR_OR, \IPS\Content\Search\Query::OPERATOR_AND ) ) )
|
||||
{
|
||||
$operator = \IPS\Request::i()->search_and_or;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user