Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added optional GET params array

  • Loading branch information...
commit b12540f43185d8b659f126174af710ff23d25207 1 parent d86d991
@Alexeyco Alexeyco authored
View
20 classes/kohana/controller/filebrowser.php
@@ -513,19 +513,27 @@ public function action_thumb()
->body($image);
}
+ /**
+ * Optional GET params (like session_id etc)
+ *
+ * @var array
+ */
+ protected $_optional_params = array();
+
public function after()
{
if ($this->auto_render)
{
$route = Route::get('wysiwyg/filebrowser');
- $this->template->global_config = array
+ $this->template->global_config = Arr::merge($this->template->global_config, array
(
- 'root' => $this->_config['media_directory'].'/'.Kohana::$config->load('filebrowser.uploads_directory'),
- 'dirs_url' => $route->uri(array('action' => 'dirs')),
- 'files_url' => $route->uri(array('action' => $this->request->action())),
- 'move_url' => $route->uri(array('action' => 'move'))
- );
+ 'root' => $this->_config['media_directory'].'/'.Kohana::$config->load('filebrowser.uploads_directory'),
+ 'dirs_url' => $route->uri(array('action' => 'dirs')),
+ 'files_url' => $route->uri(array('action' => $this->request->action())),
+ 'move_url' => $route->uri(array('action' => 'move')),
+ 'params' => $this->_optional_params
+ ));
}
parent::after();
View
4 media/filebrowser/global.js
@@ -49,8 +49,8 @@
zone: 'any',
events: 'closeFolderClick,openFolderClick'
},
- targetSelector : "div",
- containerClass : "contextMenu well",
+ targetSelector: "div",
+ containerClass: "contextMenu well",
listClass: "nav nav-list",
list: [
{
Please sign in to comment.
Something went wrong with that request. Please try again.