mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
Empty commit
This commit is contained in:
parent
32b6a33e50
commit
f42f2a7eaf
@ -244,11 +244,18 @@ public function where_between($Attribute, $Values) {
|
||||
* @param string $Field field to match $Expr against. Default is *, which means all available fields
|
||||
* @return current SphinxQL query object
|
||||
*/
|
||||
public function where_match($Expr, $Field = '*') {
|
||||
public function where_match($Expr, $Field = '*', $Escape = true) {
|
||||
if(empty($Expr)) {
|
||||
return $this;
|
||||
}
|
||||
$this->Expressions[] = "@$Field ".SphinxQL::escape_string($Expr);
|
||||
if ($Field !== false) {
|
||||
$Field = "@$Field ";
|
||||
}
|
||||
if ($Escape === true) {
|
||||
$this->Expressions[] = "$Field".SphinxQL::escape_string($Expr);
|
||||
} else {
|
||||
$this->Expressions[] = $Field.$Expr;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
@ -89,9 +89,8 @@
|
||||
<tr><td><a href="tools.php?action=sandbox6">Sandbox (6)</a></td></tr>
|
||||
<tr><td><a href="tools.php?action=sandbox7">Sandbox (7)</a></td></tr>
|
||||
<tr><td><a href="tools.php?action=sandbox8">Sandbox (8)</a></td></tr>
|
||||
<tr><td><a href="tools.php?action=nightoath">NightOath's Sandbox</a></td></tr>
|
||||
|
||||
<tr><td><a href="schedule.php?auth=<?=$LoggedUser['AuthKey']?>">Schedule</a></td></tr>
|
||||
<tr><td><a href="tools.php?action=branches">Git branches</a></td></tr>
|
||||
<? }?>
|
||||
<tr><td><strong><a href="tools.php?action=public_sandbox">Public Sandbox</a></strong></td></tr>
|
||||
<? if (check_perms('users_mod')) { ?>
|
||||
|
Loading…
Reference in New Issue
Block a user