[BUGFIX] Wrong icon in db_new tree
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / ListFrameLoaderController.php
1 <?php
2 namespace TYPO3\CMS\Backend\Controller;
3
4 /**
5 * Script Class for redirecting shortcut actions to the correct script
6 *
7 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
8 * @package TYPO3
9 * @subpackage core
10 */
11 class ListFrameLoaderController {
12
13 /**
14 * Main content generated
15 *
16 * @return void
17 * @todo Define visibility
18 */
19 public function main() {
20 $GLOBALS['TBE_TEMPLATE']->divClass = '';
21 $this->content .= $GLOBALS['TBE_TEMPLATE']->startPage('List Frame Loader');
22 $this->content .= $GLOBALS['TBE_TEMPLATE']->wrapScriptTags('
23 var theUrl = top.getModuleUrl("");
24 if (theUrl) window.location.href=theUrl;
25 ');
26 // End page:
27 $this->content .= $GLOBALS['TBE_TEMPLATE']->endPage();
28 // Output:
29 echo $this->content;
30 }
31
32 }
33
34
35 ?>