[FEATURE] Use mod dispatcher for opendocs extension
authorSusanne Moog <typo3@susannemoog.de>
Fri, 15 Jun 2012 18:29:29 +0000 (20:29 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Fri, 15 Jun 2012 20:37:22 +0000 (22:37 +0200)
Use the backend module dispatcher for the
opendocs extension.

Added an index.php that redirects to
alt_doc.php which contains the logic.

Change-Id: I2a939cfe5f48d760718a0ae330abdc0e75cda135
Resolves: #38102
Releases: 6.0
Reviewed-on: http://review.typo3.org/12109
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/opendocs/mod/conf.php
typo3/sysext/opendocs/mod/index.php [new file with mode: 0644]

index 0748b05..a47e379 100644 (file)
@@ -1,11 +1,8 @@
 <?php
-define('TYPO3_MOD_PATH', 'sysext/opendocs/mod/');
-$BACK_PATH='../../../';
-
+$MCONF['script'] = '_DISPATCH';
 $MLANG['default']['tabs_images']['tab'] = 'document.gif';
 $MLANG['default']['ll_ref'] = 'LLL:EXT:opendocs/mod/locallang_mod.xml';
 
-$MCONF['script'] = $BACK_PATH.'alt_doc.php';
 $MCONF['access'] = 'group,user';
 $MCONF['name'] = 'opendocs';
 
diff --git a/typo3/sysext/opendocs/mod/index.php b/typo3/sysext/opendocs/mod/index.php
new file mode 100644 (file)
index 0000000..200f880
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 1999-2012 Kasper Skårhøj (kasperYYYY@typo3.com)
+ *  All rights reserved
+ *
+ *  This script is part of the TYPO3 project. The TYPO3 project is
+ *  free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  The GNU General Public License can be found at
+ *  http://www.gnu.org/copyleft/gpl.html.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *
+ *  This script is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
+t3lib_utility_Http::redirect('alt_doc.php');
+?>
\ No newline at end of file