summaryrefslogtreecommitdiff
path: root/ext/mnogosearch/php_mnogo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mnogosearch/php_mnogo.c')
-rw-r--r--ext/mnogosearch/php_mnogo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c
index c44668db5f..a275af7941 100644
--- a/ext/mnogosearch/php_mnogo.c
+++ b/ext/mnogosearch/php_mnogo.c
@@ -85,6 +85,7 @@
#define UDM_PARAM_GROUPBYSITE 27
#define UDM_PARAM_SITEID 28
#define UDM_PARAM_DETECT_CLONES 29
+#define UDM_PARAM_SORT_ORDER 30
/* udm_add_search_limit constants */
#define UDM_LIMIT_URL 1
@@ -322,6 +323,7 @@ DLEXPORT PHP_MINIT_FUNCTION(mnogosearch)
REGISTER_LONG_CONSTANT("UDM_PARAM_QUERY", UDM_PARAM_QUERY,CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_SITEID", UDM_PARAM_SITEID,CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_DETECT_CLONES",UDM_PARAM_DETECT_CLONES,CONST_CS | CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("UDM_PARAM_SORT_ORDER",UDM_PARAM_SORT_ORDER,CONST_CS | CONST_PERSISTENT);
/* udm_add_search_limit constants */
REGISTER_LONG_CONSTANT("UDM_LIMIT_CAT", UDM_LIMIT_CAT,CONST_CS | CONST_PERSISTENT);
@@ -1083,6 +1085,13 @@ DLEXPORT PHP_FUNCTION(udm_set_agent_param)
break;
#endif
+#if UDM_VERSION_ID >= 30214
+ case UDM_PARAM_SORT_ORDER:
+ UdmVarListReplaceStr(&Agent->Conf->Vars,"s",val);
+
+ break;
+#endif
+
default:
php_error_docref(NULL TSRMLS_CC, E_WARNING,"Unknown agent session parameter");
RETURN_FALSE;