Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Add a change log entry for the new hooks (see #7341)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Sep 30, 2014
1 parent e1236f8 commit 79d45a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS changelog
Version 3.4.0-beta1 (2014-10-XX)
--------------------------------

### New
Added the "compareThemeFiles", "extractThemeFiles" and "exportTheme" hooks.

### Improved
Use the image meta data in `Controller::addEnclosuresToTemplate()` (see #6746).

Expand Down
4 changes: 2 additions & 2 deletions system/modules/core/classes/Theme.php
Expand Up @@ -630,11 +630,11 @@ protected function extractThemeFiles($arrFiles, $arrDbFields)
// Notify the user
\Message::addConfirmation(sprintf($GLOBALS['TL_LANG']['tl_theme']['theme_imported'], basename($strZipFile)));

$intThemeId = empty($arrMapper['tl_theme']) ? null : reset($arrMapper['tl_theme']);

// HOOK: add custom logic
if (isset($GLOBALS['TL_HOOKS']['extractThemeFiles']) && is_array($GLOBALS['TL_HOOKS']['extractThemeFiles']))
{
$intThemeId = empty($arrMapper['tl_theme']) ? null : reset($arrMapper['tl_theme']);

foreach ($GLOBALS['TL_HOOKS']['extractThemeFiles'] as $callback)
{
\System::importStatic($callback[0])->$callback[1]($xml, $objArchive, $intThemeId, $arrMapper);
Expand Down

0 comments on commit 79d45a9

Please sign in to comment.