Skip to content

Commit

Permalink
Fix J2.5 t3media element not target correct folder
Browse files Browse the repository at this point in the history
  • Loading branch information
joomlart committed Dec 4, 2013
1 parent 09a1d8f commit 927af99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions source/plg_system_t3/base-bs3/js/nav-collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ jQuery(document).ready(function ($) {
// rebuild
lis.each(function () {

//remove Mootool conflict
if(window.MooTools && window.MooTools.More && Element && Element.implement){
this.show = null; this.hide = null;
}

// get firstchild - a or span
var $li = $(this),
$child = $li.find('>:first-child');
Expand Down
2 changes: 1 addition & 1 deletion source/plg_system_t3/includes/depend/t3media.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ protected function getInput()
if ($this->value && file_exists(JPATH_ROOT . '/' . $this->value))
{
$folder = explode('/', $this->value);
array_diff_assoc($folder, explode('/', JComponentHelper::getParams('com_media')->get('image_path', 'images')));
$folder = array_diff_assoc($folder, explode('/', JComponentHelper::getParams('com_media')->get('image_path', 'images')));
array_pop($folder);
$folder = implode('/', $folder);
}
Expand Down

0 comments on commit 927af99

Please sign in to comment.