Showing with 13 additions and 7 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 README.md
  3. +1 −1 src/Resources/contao/config/constants.php
  4. +5 −2 src/Resources/contao/drivers/DC_Table.php
  5. +1 −1 src/Resources/public/core.js
  6. +1 −2 src/Resources/public/core.min.js
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log

## 4.4.16 (2018-03-08)

* Correctly link to the picker from the TinyMCE link menu (see #1415).

## 4.4.15 (2018-03-06)

* Do not make the response private when saving the session (see #1388).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for more information.
Contao 4 has been designed as a [Symfony][2] bundle, which can be used to add
CMS functionality to any Symfony application. If you do not have an existing
Symfony application yet, we recommend using the [Contao managed edition][3] as
basis for your application.``
basis for your application.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/config/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// Core version
\define('VERSION', '4.4');
\define('BUILD', '15');
\define('BUILD', '16');
\define('LONG_TERM_SUPPORT', true);

// Link constants
Expand Down
7 changes: 5 additions & 2 deletions src/Resources/contao/drivers/DC_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -3545,9 +3545,12 @@ protected function treeView()
}

// Call a recursive function that builds the tree
for ($i=0, $c=\count($this->root); $i<$c; $i++)
if (\is_array($this->root))
{
$tree .= $this->generateTree($table, $this->root[$i], array('p'=>$this->root[($i-1)], 'n'=>$this->root[($i+1)]), $blnHasSorting, -20, ($blnClipboard ? $arrClipboard : false), ($GLOBALS['TL_DCA'][$this->strTable]['list']['sorting']['mode'] == 5 && $blnClipboard && $this->root[$i] == $arrClipboard['id']), false, false, $arrFound);
for ($i=0, $c=\count($this->root); $i<$c; $i++)
{
$tree .= $this->generateTree($table, $this->root[$i], array('p'=>$this->root[($i-1)], 'n'=>$this->root[($i+1)]), $blnHasSorting, -20, ($blnClipboard ? $arrClipboard : false), ($GLOBALS['TL_DCA'][$this->strTable]['list']['sorting']['mode'] == 5 && $blnClipboard && $this->root[$i] == $arrClipboard['id']), false, false, $arrFound);
}
}

// Return if there are no records
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ var Backend =
Backend.openModalSelector({
'id': 'tl_listing',
'title': win.document.getElement('div.mce-title').get('text'),
'url': document.location.pathname.replace('/contao', '/_contao') + '/picker?context=' + (type == 'file' ? 'link' : 'file') + '&amp;extras[fieldType]=radio&amp;extras[filesOnly]=true&amp;value=' + url + '&amp;popup=1',
'url': document.location.pathname + '/picker?context=' + (type == 'file' ? 'link' : 'file') + '&amp;extras[fieldType]=radio&amp;extras[filesOnly]=true&amp;value=' + url + '&amp;popup=1',
'callback': function(table, value) {
win.document.getElementById(field_name).value = value.join(',');
}
Expand Down
Loading