From b442452d9b2a6e0cbc3b8ebf5e93ead8492141f6 Mon Sep 17 00:00:00 2001 From: Milano Date: Fri, 3 Jul 2015 11:04:34 +0700 Subject: [PATCH] Fix default global options --- src/Html.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Html.php b/src/Html.php index b483cb2..61a97b5 100644 --- a/src/Html.php +++ b/src/Html.php @@ -36,10 +36,10 @@ class Html public function __construct($id, $url) { + $this->initDefaultOptions(); + $this->id = $id; $this->options['url'] = $url; - - $this->initDefaultOptions(); } /** @@ -47,12 +47,7 @@ public function __construct($id, $url) */ protected function initDefaultOptions() { - $options = ['flash_swf_url', 'silverlight_xap_url']; - - foreach ($options as $option) - { - $this->options[$option] = config('plupload.' . $option); - } + $this->options = array_except(config('plupload'), ['chunk_path']); } /**