Author | Replies |
---|---|
sitesurety | # Posted on November 8, 2014 at 3:30 pm |
ok, i’ve gone through the filter code and it will include any match.. I’ve reversed the loop so that it will do an ‘and’ match (1 or more must be true to be added). Any chance this could be added in a future release as a variable to the function? i.e. Exclusive filter function filterExclusive($args, $case_sensitive = FALSE) { if (!is_array($args)) { // extract the arguments foreach ($this->_items as $set_item) { foreach ($args as $arg) { $m = array(); preg_match ( “/^([\w\-]+)(\#?\=|\#?[\>\<\$\^\*\~\!]=|\#?\>|\#?\<)(.*)$/” , $arg, $m ); if ($m && count($m) == 4) { if ($case_sensitive) { $f = $set_item->f($fn); $fields = array(); $fields[] = $f; foreach ($fields as $f) { if ($include) { $nv = 0; if ($case_sensitive) { if (is_numeric($fv)) { if (is_numeric($val)) { // Check each item for match individually switch ($op) { } // endif $include } // endforeach } } if ($include) { } } |
MasterPress 1.3.8 is now available
16th December 2022
MasterPress 1.3.8 is a bugfix release. Fixed a bug where MB, KB, and GB were being converted to bytes incorrectly via WOOF file functions. Fixed a bug where transparent images were losing their transparency on resize.