Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BUG Load just one of each plugin.
  • Loading branch information
mateusz committed Apr 16, 2014
1 parent 3620d01 commit bde16f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thirdparty/tinymce/tiny_mce_gzip.php
Expand Up @@ -94,17 +94,17 @@ public function handleRequest() {
$plugins = self::getParam("plugins");
if ($plugins)
$this->settings["plugins"] = $plugins;
$plugins = explode(',', $this->settings["plugins"]);
$plugins = array_unique(explode(',', $this->settings["plugins"]));

$themes = self::getParam("themes");
if ($themes)
$this->settings["themes"] = $themes;
$themes = explode(',', $this->settings["themes"]);
$themes = array_unique(explode(',', $this->settings["themes"]));

$languages = self::getParam("languages");
if ($languages)
$this->settings["languages"] = $languages;
$languages = explode(',', $this->settings["languages"]);
$languages = array_unique(explode(',', $this->settings["languages"]));

$tagFiles = self::getParam("files");
if ($tagFiles)
Expand Down Expand Up @@ -140,7 +140,7 @@ public function handleRequest() {
}

// Add any specified files.
$allFiles = array_merge($files, explode(',', $this->settings['files']));
$allFiles = array_merge($files, array_unique(explode(',', $this->settings['files'])));

// Process source files
for ($i = 0; $i < count($allFiles); $i++) {
Expand Down

0 comments on commit bde16f0

Please sign in to comment.