Skip to content

Commit

Permalink
Fix default global options
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Jul 3, 2015
1 parent b464f11 commit b442452
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,18 @@ class Html

public function __construct($id, $url)
{
$this->initDefaultOptions();

$this->id = $id;
$this->options['url'] = $url;

$this->initDefaultOptions();
}

/**
* Set default uploader options
*/
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']);
}

/**
Expand Down

0 comments on commit b442452

Please sign in to comment.