Skip to content

Commit

Permalink
Merge branch 'master' of github.com:YAG-Gallery/yag
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Oct 10, 2015
2 parents 58b72c2 + b1da79e commit 47bd60e
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/ItemRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function getItemsAfterThisItem(Tx_Yag_Domain_Model_Item $item = NULL, $li

} elseif ($result->count() == 1 && $result->current() !== FALSE) {
$object = $result->current();
$session = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\Session::class);
$session = $this->objectManager->get('TYPO3\CMS\Extbase\Persistence\Generic\Session');
$session->registerObject($object, $object->getUid());
return $object;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getResolutionByItem(Tx_Yag_Domain_Model_Item $item, Tx_Yag_Domai

if ($result !== NULL && !is_array($result) && $result->current() !== FALSE) {
$object = $result->current();
$session = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\Session::class);
$session = $this->objectManager->get('TYPO3\CMS\Extbase\Persistence\Generic\Session');
$session->registerObject($object, $object->getUid());
}

Expand Down
13 changes: 7 additions & 6 deletions Configuration/TypoScript/BaseConfig/Framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ config.tx_extbase {

# Object manager configuration for Dependency Injection
objects {
# TYPO3 < 6.0
Tx_Extbase_Persistence_BackendInterface.className = Tx_Yag_Extbase_Persistence_Backend
Tx_PtExtbase_Rbac_RbacServiceInterface.className = Tx_PtExtbase_Rbac_TypoScriptRbacService

# TYPO3 >= 6.0
TYPO3\CMS\Extbase\Persistence\Generic\BackendInterface.className = Tx_Yag_Extbase_Persistence_Backend
}
}
Expand All @@ -69,4 +64,10 @@ config.tx_extbase {
* This configuration is needed to achieve the behaviour of extbase 1.3.0 in extbase > 1.4.1
* concerning default controller/actions configured with switchableControllerActions.
*/
plugin.tx_yag.mvc.callDefaultActionIfActionCantBeResolved = 1
plugin.tx_yag {
mvc.callDefaultActionIfActionCantBeResolved = 1

view {
layoutRootPath = {$plugin.tx_yag.view.layoutRootPath}
}
}
4 changes: 4 additions & 0 deletions Configuration/TypoScript/constants.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ config.yag {

# cat=YAG/file/030; type=boolean; label=LLL:EXT:yag/Resources/Private/Language/locallang.xlf:tx_yag_constants.addFancyBox
addLightBox = 1
}

plugin {
tx_yag.view.layoutRootPath = EXT:yag/Resources/Private/Layouts/
}
10 changes: 8 additions & 2 deletions Documentation/Yag-YetAnotherGallery/Changelog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,21 @@ Gallery/yag/commits/master>`_
:Changes:
Changes:

- :Version:
4.0.7

:Changes:

[TASK] Fix Backend Ajax requests

- :Version:
4.1.0
4.0.6

:Changes:

[TASK] Fix Backend Layout for 7.4

[FEATURE] Synchronize sorting/deleted flag of tranlsated enteties
[FEATURE] Synchronize sorting/deleted flag of translated enteties

[BUGFIX] Removed usage of deprecated identityMap

Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
array (
'pt_extlist' => '2.0.4',
'pt_extbase' => '2.0.0',
'typo3' => '6.2.0-7.4.99',
'typo3' => '6.2.0-7.5.99',
),
'conflicts' =>
array (
Expand Down
17 changes: 14 additions & 3 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,21 @@

// Flexform record selector
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('yag').'Classes/Utility/Flexform/RecordSelector.php';
$TYPO3_CONF_VARS['BE']['AJAX']['txyagM1::getGalleryList'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('yag').'Classes/Utility/Flexform/RecordSelector.php:user_Tx_Yag_Utility_Flexform_RecordSelector->getGallerySelectList';
$TYPO3_CONF_VARS['BE']['AJAX']['txyagM1::getAlbumList'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('yag').'Classes/Utility/Flexform/RecordSelector.php:user_Tx_Yag_Utility_Flexform_RecordSelector->getAlbumSelectList';
$TYPO3_CONF_VARS['BE']['AJAX']['txyagM1::getImageList'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('yag').'Classes/Utility/Flexform/RecordSelector.php:user_Tx_Yag_Utility_Flexform_RecordSelector->getImageSelectList';

$yagGalleryRecordSelectorClass = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('yag') . 'Classes/Utility/Flexform/RecordSelector.php:user_Tx_Yag_Utility_Flexform_RecordSelector';


\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler (
'txyagM1::getGalleryList', $yagGalleryRecordSelectorClass . '->getGallerySelectList', FALSE
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler (
'txyagM1::getAlbumList', $yagGalleryRecordSelectorClass . '->getAlbumSelectList', FALSE
);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler (
'txyagM1::getImageList', $yagGalleryRecordSelectorClass . '->getImageSelectList', FALSE
);


/*
Expand Down

0 comments on commit 47bd60e

Please sign in to comment.