Skip to content

Commit 2b41c3c

Browse files
authored
fix: GLOB_BRACE undefined in some os
1 parent 19c7bb1 commit 2b41c3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Console extends Widget
4646
public function execute()
4747
{
4848
$this->widget('Widget_User')->pass('administrator');
49-
$files = glob($this->_template_dir . '*.{html,HTML}', GLOB_BRACE);
49+
$files = glob($this->_template_dir . '*.html');
5050
$this->_currentFile = $this->request->get('file', 'owner.html');
5151

5252
if (preg_match("/^([_0-9a-z-\.\ ])+$/i", $this->_currentFile) && file_exists($this->_template_dir . $this->_currentFile)) {

0 commit comments

Comments
 (0)