1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-23 14:56:51 +02:00

Fix issue processwire/processwire-issues#548 WireLog::getLines method wasn't passing options array to FileLog::find

This commit is contained in:
Ryan Cramer
2018-03-28 05:59:40 -04:00
parent bd85c025e2
commit 164d132be8
2 changed files with 5 additions and 2 deletions

View File

@@ -12,6 +12,9 @@
* https://processwire.com * https://processwire.com
* *
* @method bool save($name, $text, $options = array()) * @method bool save($name, $text, $options = array())
*
* @todo option to avoid saving same log entry text back-to-back
* @todo option to disable logs by name
* *
*/ */
@@ -246,7 +249,7 @@ class WireLog extends Wire {
unset($options['pageNum']); unset($options['pageNum']);
$log = $this->getFileLog($name); $log = $this->getFileLog($name);
$limit = isset($options['limit']) ? (int) $options['limit'] : 100; $limit = isset($options['limit']) ? (int) $options['limit'] : 100;
return $log->find($limit, $pageNum); return $log->find($limit, $pageNum, $options);
} }
/** /**

View File

@@ -30,7 +30,7 @@ $ukGridWidths = array(
'40%' => '2-5', '40%' => '2-5',
'34%' => '1-3', '34%' => '1-3',
'33%' => '1-3', '33%' => '1-3',
'32%' => '2-6', '32%' => '1-3',
'30%' => '1-3', '30%' => '1-3',
'25%' => '1-4', '25%' => '1-4',
'20%' => '1-5', '20%' => '1-5',