Commit 37f5f0cf authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1308 If no pattern is transmitted, set the pattern to null and

replace it inside the method.

Released under the Affero GNU General Public License (AGPL) version 3.
parent fc985834
......@@ -497,7 +497,10 @@ class FileStateMachine implements IStateMachine {
* @access public
* @return array
*/
protected function getStateFiles($pattern = STATE_DIR.'*/*/*') {
protected function getStateFiles($pattern = null) {
if ($pattern === null) {
$pattern = STATE_DIR.'*/*/*';
}
if (empty($this->statefiles) || $pattern != $this->pattern) {
$this->statefiles = glob($pattern, GLOB_NOSORT);
$this->pattern = $pattern;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment