mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 19:54:24 +02:00
Minor typo fixes and adjustments in various files
This commit is contained in:
@@ -280,7 +280,7 @@ abstract class AdminTheme extends WireData implements Module {
|
|||||||
* Omit the first argument to return all classes in an array.
|
* Omit the first argument to return all classes in an array.
|
||||||
*
|
*
|
||||||
* @param string $name Tag or item name, i.e. “input”, or omit to return all defined [tags=classes]
|
* @param string $name Tag or item name, i.e. “input”, or omit to return all defined [tags=classes]
|
||||||
* @param bool $getArray Specify true to return array of class name(s) rather than string (default=false). $tagName argument required.
|
* @param bool $getArray Specify true to return array of class name(s) rather than string (default=false). $name argument required.
|
||||||
* @return string|array Returns string or array of class names, or array of all [tags=classes] or $tagName argument is empty.
|
* @return string|array Returns string or array of class names, or array of all [tags=classes] or $tagName argument is empty.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@@ -351,9 +351,11 @@ class DatabaseQuerySelectFulltext extends Wire {
|
|||||||
*/
|
*/
|
||||||
protected function matchArrayValue(array $value) {
|
protected function matchArrayValue(array $value) {
|
||||||
|
|
||||||
|
/*
|
||||||
if(strpos($this->operator, '~') !== false) {
|
if(strpos($this->operator, '~') !== false) {
|
||||||
throw new WireException("Operator $this->operator is not supported for $this->fieldName with OR value condition");
|
throw new WireException("Operator $this->operator is not supported for $this->fieldName with OR value condition");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// convert *= operator to %= to make the query possible (avoiding matchContains method)
|
// convert *= operator to %= to make the query possible (avoiding matchContains method)
|
||||||
// if($this->operator === '*=') $this->operator = '%=';
|
// if($this->operator === '*=') $this->operator = '%=';
|
||||||
|
@@ -478,7 +478,7 @@ abstract class FieldtypeMulti extends Fieldtype {
|
|||||||
$query->data('_table', $table);
|
$query->data('_table', $table);
|
||||||
|
|
||||||
foreach($filters as $selector) {
|
foreach($filters as $selector) {
|
||||||
// @todo add support for OR values of $col or $value
|
|
||||||
$col = $selector->field;
|
$col = $selector->field;
|
||||||
$op = $selector->operator;
|
$op = $selector->operator;
|
||||||
$value = $selector->value;
|
$value = $selector->value;
|
||||||
|
@@ -3861,7 +3861,7 @@ class Modules extends WireArray {
|
|||||||
$query->bindValue(":data", $json, \PDO::PARAM_STR);
|
$query->bindValue(":data", $json, \PDO::PARAM_STR);
|
||||||
$query->bindValue(":id", (int) $id, \PDO::PARAM_INT);
|
$query->bindValue(":id", (int) $id, \PDO::PARAM_INT);
|
||||||
$result = $query->execute();
|
$result = $query->execute();
|
||||||
$this->log("Saved module '$moduleName' config data");
|
// $this->log("Saved module '$moduleName' config data");
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
@@ -364,7 +364,7 @@ class WireHttp extends Wire {
|
|||||||
* @param string $url URL to request (including http:// or https://)
|
* @param string $url URL to request (including http:// or https://)
|
||||||
* @param mixed $data Array of data to send (if not already set before) or raw data to send
|
* @param mixed $data Array of data to send (if not already set before) or raw data to send
|
||||||
* @param array $options Optional options to modify default behavior, see the send() method for details.
|
* @param array $options Optional options to modify default behavior, see the send() method for details.
|
||||||
* @return bool|array False on failure or Arrray with ResponseHeaders on success.
|
* @return bool|array False on failure or Array with ResponseHeaders on success.
|
||||||
* @see WireHttp::send(), WireHttp::post(), WireHttp::get()
|
* @see WireHttp::send(), WireHttp::post(), WireHttp::get()
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@@ -1008,7 +1008,7 @@ class ProcessPageView extends Process {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// options for WireHttp::sendFile
|
// options for WireHttp::sendFile
|
||||||
$defaults = array('exit' => false);
|
$defaults = array('exit' => false, 'limitPath' => $page->filesPath());
|
||||||
$options = array_merge($defaults, $options);
|
$options = array_merge($defaults, $options);
|
||||||
|
|
||||||
$this->wire()->files->send($filename, $options);
|
$this->wire()->files->send($filename, $options);
|
||||||
|
Reference in New Issue
Block a user