Feature #10817 » v1.patch
Classes/Controller/ReviewController.php (working copy) | ||
---|---|---|
$this->view->assign('workspaceList', $wsList);
|
||
}
|
||
/**
|
||
* Trivial check to see if the user already migrated his workspaces
|
||
* to the new style (either manually or with the migrator scripts)
|
||
*
|
||
* @return bool
|
||
*/
|
||
protected function isOldStyleWorkspaceUsed() {
|
||
$where = 'adminusers != "" AND adminusers NOT LIKE "%be_users%" AND adminusers NOT LIKE "%be_groups%" AND deleted=0';
|
||
$count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('uid', 'sys_workspace', $where);
|
||
return $count > 0;
|
||
}
|
||
/**
|
||
* Initializes the controller before invoking an action method.
|
||
*
|
||
... | ... | |
protected function initializeAction() {
|
||
parent::initializeAction();
|
||
if ($this->isOldStyleWorkspaceUsed()) {
|
||
$message = t3lib_div::makeInstance(
|
||
't3lib_FlashMessage',
|
||
$GLOBALS['LANG']->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang.xml:warning.oldStyleWorkspaceInUser'),
|
||
'',
|
||
t3lib_FlashMessage::WARNING
|
||
);
|
||
t3lib_FlashMessageQueue::addMessage($message);
|
||
}
|
||
$this->pageRenderer->loadExtJS();
|
||
$this->pageRenderer->enableExtJSQuickTips();
|
||
$this->pageRenderer->enableExtJsDebug();
|
Resources/Private/Language/locallang.xml (working copy) | ||
---|---|---|
<label index="window.sendToNextStageWindow.additionalRecipients">Additional recipients</label>
|
||
<label index="window.sendToNextStageWindow.comments">Comments</label>
|
||
<label index="error.getStageTitle.stageNotFound">Stage not found</label>
|
||
<label index="warning.oldStyleWorkspaceInUser">It seems that you're stil using old-style workspace. If you continue using this module without migrating your workspace you might loose data.</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|
Resources/Private/Layouts/module.html (working copy) | ||
---|---|---|
<!-- Content of module, for instance listing, info or editing -->
|
||
<div id="typo3-docbody">
|
||
<div id="typo3-inner-docbody">
|
||
<f:be.flashMessageQueue />
|
||
<f:render partial="navigation" arguments="{workspaceList: workspaceList, activeWorkspaceUid: activeWorkspaceUid, showAllWorkspaceTab:showAllWorkspaceTab}" />
|
||
<div class="typo3-dyntabmenu-divs"><f:render section="main" /></div>
|
||
<f:if condition="{showLegend}"><f:render partial="legend" /></f:if>
|