Skip to content

Commit

Permalink
Fix case of tmbURL option
Browse files Browse the repository at this point in the history
  • Loading branch information
scollado committed Jan 21, 2016
1 parent 26db2ce commit 6b146cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Configuration/ElFinderConfigurationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getConfiguration($instance)
'imgLib' => $parameter['img_lib'],
'tmbPath' => $parameter['tmb_path'],
'tmbPathMode' => $parameter['tmb_path_mode'],
'tmbUrl' => $parameter['tmb_url'],
'tmbURL' => $parameter['tmb_url'],
'tmbSize' => $parameter['tmb_size'],
'tmbCrop' => $parameter['tmb_crop'],
'tmbBgColor' => $parameter['tmb_bg_color'],
Expand Down
6 changes: 6 additions & 0 deletions Tests/Configuration/ElFinderConfigurationReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,10 @@ public function testAccessVisible()
$this->assertNull($this->reader->access('read', $visiblePath, 'dummy', 'dummy'));
$this->assertNull($this->reader->access('write', $visiblePath, 'dummy', 'dummy'));
}

public function testAccessTmbURLOpion()
{
$configuration = $this->reader->getConfiguration('default');
$this->assertArrayHasKey('tmbURL', $configuration['roots'][0]);
}
}

0 comments on commit 6b146cc

Please sign in to comment.