From 0a04cb329bd24f37b0be1ef55ec3366390826bda Mon Sep 17 00:00:00 2001 From: Pathologic Date: Mon, 20 Apr 2015 04:17:21 +0300 Subject: [PATCH] fix --- assets/plugins/simplefiles/lib/plugin.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/assets/plugins/simplefiles/lib/plugin.class.php b/assets/plugins/simplefiles/lib/plugin.class.php index c4f4048..827723f 100644 --- a/assets/plugins/simplefiles/lib/plugin.class.php +++ b/assets/plugins/simplefiles/lib/plugin.class.php @@ -13,17 +13,15 @@ class sfPlugin extends \SimpleTab\Plugin { public function getTplPlaceholders() { $ph = array( - 'id' => $this->params['id'], 'lang' => $this->lang_attribute, 'url' => $this->modx->config['site_url'].'assets/plugins/simplefiles/ajax.php', 'theme' => MODX_MANAGER_URL.'media/style/'.$this->modx->config['manager_theme'], - 'tabName' => $this->params['tabName'], 'site_url' => $this->modx->config['site_url'], 'manager_url' => MODX_MANAGER_URL, 'kcfinder_url' => MODX_MANAGER_URL."media/browser/mcpuk/browse.php?type=files", 'allowedFiles' => strtolower(str_replace(array(' ',','),array('','|'),isset($this->params['allowedFiles']) ? $this->params['allowedFiles'] : $this->modx->config['upload_files'])) ); - return $ph; + return array_merge($this->params,$ph); } public function createTable() { $sql = <<< OUT