[TASK] EXT:filelist Uniform extension directory structure 61/41661/3
authorMichael Oehlhof <typo3@oehlhof.de>
Sat, 18 Jul 2015 10:17:14 +0000 (12:17 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 20 Jul 2015 14:05:10 +0000 (16:05 +0200)
Moved the code from the mod1 directory to the Modules/Filelist directory.

Resolves: #68336
Releases: master
Change-Id: Ieaf1eb27a95baf2414a730748c699fa0abd09ccb
Reviewed-on: http://review.typo3.org/41661
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Frederic Gaus <frederic.gaus@flagbit.de>
Tested-by: Frederic Gaus <frederic.gaus@flagbit.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/filelist/Modules/Filelist/index.php [new file with mode: 0644]
typo3/sysext/filelist/ext_tables.php
typo3/sysext/filelist/mod1/index.php [deleted file]

index 69c26d4..c7b04e9 100644 (file)
@@ -783,7 +783,7 @@ class FileList extends AbstractRecordList {
        }
 
        /**
-        * Wraps the directory-titles ($code) in a link to filelist/mod1/index.php (id=$path) and sorting commands...
+        * Wraps the directory-titles ($code) in a link to filelist/Modules/Filelist/index.php (id=$path) and sorting commands...
         *
         * @param string $code String to be wrapped
         * @param string $folderIdentifier ID (path)
diff --git a/typo3/sysext/filelist/Modules/Filelist/index.php b/typo3/sysext/filelist/Modules/Filelist/index.php
new file mode 100644 (file)
index 0000000..631c26c
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+/**
+ * Web>File: Filelisting
+ */
+$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Filelist\Controller\FileListController::class);
+$GLOBALS['SOBE']->init();
+$GLOBALS['SOBE']->main();
+$GLOBALS['SOBE']->printContent();
index f083c3d..9fd1ef8 100644 (file)
@@ -6,7 +6,7 @@ if (TYPO3_MODE === 'BE') {
                'file',
                'list',
                '',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/',
+               'EXT:filelist/Modules/Filelist/',
                array(
                        'script' => '_DISPATCH',
                        'access' => 'user,group',
@@ -14,7 +14,7 @@ if (TYPO3_MODE === 'BE') {
                        'workspaces' => 'online,custom',
                        'labels' => array(
                                'tabs_images' => array(
-                                       'tab' => '../Resources/Public/Icons/module-filelist.svg',
+                                       'tab' => 'EXT:filelist/Resources/Public/Icons/module-filelist.svg',
                                ),
                                'll_ref' => 'LLL:EXT:lang/locallang_mod_file_list.xlf',
                        ),
diff --git a/typo3/sysext/filelist/mod1/index.php b/typo3/sysext/filelist/mod1/index.php
deleted file mode 100644 (file)
index 631c26c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * Web>File: Filelisting
- */
-$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Filelist\Controller\FileListController::class);
-$GLOBALS['SOBE']->init();
-$GLOBALS['SOBE']->main();
-$GLOBALS['SOBE']->printContent();