Fixed bug #10971: Fatal error in impexp module: Call to a member function includeLLFi...
authorRupert Germann <rupi@gmx.li>
Sun, 11 Oct 2009 21:55:13 +0000 (21:55 +0000)
committerRupert Germann <rupi@gmx.li>
Sun, 11 Oct 2009 21:55:13 +0000 (21:55 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6141 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list_extra.inc
typo3/sysext/impexp/app/conf.php
typo3/sysext/impexp/app/index.php
typo3/sysext/impexp/class.tx_impexp_clickmenu.php
typo3/sysext/impexp/ext_tables.php

index 39fe1e9..1a41650 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
 
 2009-10-11  Rupert Germann  <rupi@gmx.li>
 
+       * Fixed bug #10971: Fatal error in impexp module: Call to a member function includeLLFile() on a non-object (thanks to Andre Steiling)
        * Follow-up to bug #12154: renamed t3lib_MessageQueue to t3lib_FlashMessageQueue, changed some some function names
          in t3lib_flashmessages and t3lib_FlashMessageQueue.
        * Follow-up to bug #9355: Fixed some broken utf-8 chars in class t3lib_error_debugexceptionhandler
index 974fdb7..6ab6cf4 100644 (file)
@@ -245,9 +245,9 @@ class localRecordList extends recordList {
 
                                        // Export
                                if (t3lib_extMgm::isLoaded('impexp')) {
-                                       $buttons['export'] = '<a href="' . htmlspecialchars($this->backPath. 'mod.php?M=xMOD_tximpexp&tx_impexp[action]=export&id=' . $this->id . '&tx_impexp[list][]=' . rawurlencode($this->table . ':' . $this->id)) . '">' .
-                                                                       '<img' . t3lib_iconWorks::skinImg($this->backPath, t3lib_extMgm::extRelPath('impexp') . 'export.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.export', 1) . '" alt="" />' .
-                                                                       '</a>';
+                                       $url = $this->backPath . t3lib_extMgm::extRelPath('impexp') . 'app/index.php?tx_impexp[action]=export';
+                                       $buttons['export'] = '<a href="' . htmlspecialchars($url . '&tx_impexp[list][]=' . rawurlencode($this->table . ':' . $this->id)) . '">' .                                                                       '<img' . t3lib_iconWorks::skinImg($this->backPath, t3lib_extMgm::extRelPath('impexp') . 'export.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.export', 1) . '" alt="" />' .
+                                                                               '</a>';
                                }
 
                        }
index 47b5ed6..845153f 100755 (executable)
@@ -1,6 +1,6 @@
 <?php
-#define('TYPO3_MOD_PATH', 'sysext/impexp/app/');
-#$BACK_PATH='../../../';
+define('TYPO3_MOD_PATH', 'sysext/impexp/app/');
+$BACK_PATH='../../../';
 
 $MCONF['name']='xMOD_tximpexp';        // xMOD_[modulename][optional: '_something']
 
index 59348f2..b618999 100755 (executable)
  *             external_ref[tables][]=table/_ALL
  */
 
-
+unset($MCONF);
+require ('conf.php');
+require_once ($BACK_PATH.'init.php');
+require_once ($BACK_PATH.'template.php');
 $LANG->includeLLFile('EXT:impexp/app/locallang.php');
 require_once (t3lib_extMgm::extPath('impexp').'class.tx_impexp.php');
 
index 7adaf8d..3dda828 100755 (executable)
@@ -84,7 +84,8 @@ class tx_impexp_clickmenu {
 
                        $LL = $this->includeLL();
 
-                       $url = 'mod.php?M=xMOD_tximpexp&tx_impexp[action]=export&id=' . ($table == 'pages' ? $uid : $backRef->rec['pid']);
+                       $modUrl = $backRef->backPath.t3lib_extMgm::extRelPath('impexp').'app/index.php';
+                       $url = $modUrl . '?tx_impexp[action]=export&id=' . ($table == 'pages' ? $uid : $backRef->rec['pid']);
                        if ($table=='pages')    {
                                $url.='&tx_impexp[pagetree][id]='.$uid;
                                $url.='&tx_impexp[pagetree][levels]=0';
@@ -101,7 +102,7 @@ class tx_impexp_clickmenu {
                        );
 
                        if ($table=='pages')    {
-                               $url = 'mod.php?M=xMOD_tximpexp&id='.$uid.'&table='.$table.'&tx_impexp[action]=import';
+                               $url = $modUrl . '?id='. $uid . '&table=' . $table . '&tx_impexp[action]=import';
                                $localItems[] = $backRef->linkItem(
                                        $GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->getLLL('import',$LL)),
                                        $backRef->excludeIcon('<img'.t3lib_iconWorks::skinImg($backRef->backPath,t3lib_extMgm::extRelPath('impexp').'import.gif','width="18" height="16"').' alt="" />'),
index 426984d..0bdd97c 100755 (executable)
@@ -6,7 +6,6 @@ if (TYPO3_MODE=='BE')   {
                'name' => 'tx_impexp_clickmenu',
                'path' => t3lib_extMgm::extPath($_EXTKEY).'class.tx_impexp_clickmenu.php'
        );
-       t3lib_extMgm::addModulePath('xMOD_tximpexp',t3lib_extMgm::extPath($_EXTKEY).'app/');
 
        t3lib_extMgm::insertModuleFunction(
                'user_task',