mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 10:15:28 +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.
|
||||
*
|
||||
* @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.
|
||||
*
|
||||
*/
|
||||
|
@@ -351,9 +351,11 @@ class DatabaseQuerySelectFulltext extends Wire {
|
||||
*/
|
||||
protected function matchArrayValue(array $value) {
|
||||
|
||||
/*
|
||||
if(strpos($this->operator, '~') !== false) {
|
||||
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)
|
||||
// if($this->operator === '*=') $this->operator = '%=';
|
||||
|
@@ -478,7 +478,7 @@ abstract class FieldtypeMulti extends Fieldtype {
|
||||
$query->data('_table', $table);
|
||||
|
||||
foreach($filters as $selector) {
|
||||
// @todo add support for OR values of $col or $value
|
||||
|
||||
$col = $selector->field;
|
||||
$op = $selector->operator;
|
||||
$value = $selector->value;
|
||||
|
@@ -3861,7 +3861,7 @@ class Modules extends WireArray {
|
||||
$query->bindValue(":data", $json, \PDO::PARAM_STR);
|
||||
$query->bindValue(":id", (int) $id, \PDO::PARAM_INT);
|
||||
$result = $query->execute();
|
||||
$this->log("Saved module '$moduleName' config data");
|
||||
// $this->log("Saved module '$moduleName' config data");
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
@@ -364,7 +364,7 @@ class WireHttp extends Wire {
|
||||
* @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 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()
|
||||
*
|
||||
*/
|
||||
|
@@ -1008,7 +1008,7 @@ class ProcessPageView extends Process {
|
||||
}
|
||||
|
||||
// options for WireHttp::sendFile
|
||||
$defaults = array('exit' => false);
|
||||
$defaults = array('exit' => false, 'limitPath' => $page->filesPath());
|
||||
$options = array_merge($defaults, $options);
|
||||
|
||||
$this->wire()->files->send($filename, $options);
|
||||
|
Reference in New Issue
Block a user