Moved "doc" module to sysext "opendocs"
authorBenni Mack <benni.mack@typo3.org>
Tue, 30 Oct 2007 09:57:41 +0000 (09:57 +0000)
committerBenni Mack <benni.mack@typo3.org>
Tue, 30 Oct 2007 09:57:41 +0000 (09:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2639 709f56b5-9817-0410-a4d7-c38de5d9e867

15 files changed:
ChangeLog
t3lib/class.t3lib_loadmodules.php
t3lib/stddb/tables.php
typo3/class.alt_menu_functions.inc
typo3/mod/doc/clear.gif [deleted file]
typo3/mod/doc/conf.php [deleted file]
typo3/mod/doc/document.gif [deleted file]
typo3/sysext/lang/locallang_mod_doc.xml
typo3/sysext/opendocs/ext_emconf.php [new file with mode: 0644]
typo3/sysext/opendocs/ext_icon.gif [new file with mode: 0755]
typo3/sysext/opendocs/ext_tables.php [new file with mode: 0644]
typo3/sysext/opendocs/mod/conf.php [new file with mode: 0644]
typo3/sysext/opendocs/mod/document.gif [new file with mode: 0755]
typo3/sysext/opendocs/mod/locallang_mod.xml [new file with mode: 0644]
typo3/sysext/t3skin/ext_tables.php

index e5549e2..11bfb01 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
-2007-10-27  Benjamin Mack  <mack@xnos.org>
+2007-10-30  Benjamin Mack  <mack@xnos.org>
 
+       * Moved "doc" module to sysext "opendocs"
        * Fixed Bug #4832: Integrate the extension ter_update_check into EM (Thanks to Christian Welzel)
 
 2007-10-29     Jeff Segars     <jeff@webempoweredchurch.org>
index b4a25ac..b5f3d8a 100644 (file)
@@ -118,7 +118,6 @@ class t3lib_loadModules {
                        (
                            [web] => list,info,perm,func
                            [file] => list
-                           [doc] =>
                            [user] =>
                            [tools] => em,install,txphpmyadmin
                            [help] => about
@@ -153,7 +152,6 @@ class t3lib_loadModules {
                                            [0] => list
                                        )
 
-                                   [doc] => 1
                                    [user] => 1
                                    [tools] => Array
                                        (
@@ -210,8 +208,8 @@ class t3lib_loadModules {
                        if ($theMainMod && !is_null($path))     {
                                $this->modules[$mods] = $theMainMod;
 
-                                       // SUBMODULES - if any - are loaded (The 'doc' module cannot have submodules...)
-                               if ($mods!='doc' && is_array($subMod))  {
+                                       // SUBMODULES - if any - are loaded
+                               if (is_array($subMod))  {
                                        foreach($subMod as $valsub)     {
                                                $extModRelPath = $this->checkExtensionModule($mods.'_'.$valsub);
                                                if ($extModRelPath)     {       // EXTENSION submodule:
@@ -235,7 +233,7 @@ class t3lib_loadModules {
                                        }
                                }
                        } else {        // This must be done in order to fill out the select-lists for modules correctly!!
-                               if ($mods!='doc' && is_array($subMod))  {
+                               if (is_array($subMod))  {
                                        foreach($subMod as $valsub)     {
 // FIXME path can only be NULL here, or not?
                                                $this->checkMod($mods.'_'.$valsub,$path.$mods.'/'.$valsub);
@@ -300,12 +298,6 @@ class t3lib_loadModules {
 
                        )
 
-                   [doc] => Array
-                       (
-                           [name] => doc
-                           [script] => mod/doc/../../alt_doc.php
-                       )
-
                    [user] => Array
                        (
                            [name] => user
@@ -598,4 +590,4 @@ class t3lib_loadModules {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_loadmodules.php'])      {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_loadmodules.php']);
 }
-?>
\ No newline at end of file
+?>
index fdccf69..c2c4eb7 100755 (executable)
@@ -399,7 +399,6 @@ $TCA['sys_language'] = Array (
 $TBE_MODULES = Array (
        'web' => 'list,info,perm,func',
        'file' => 'list',
-       'doc' => '',    // This should always be empty!
        'user' => 'ws',
        'tools' => 'em',
        'help' => 'about,cshmanual'
index 71def52..57c58d1 100755 (executable)
@@ -113,11 +113,6 @@ class alt_menu_functions {
                $selectItems[] = '<option value="">[ '.$LANG->sL('LLL:EXT:lang/locallang_core.php:buttons.selMenu_modules',1).' ]</option>';
                $mC=0;
 
-                       // Remove the 'doc' module?
-               if ($BE_USER->getTSConfigVal('options.disableDocModuleInAB'))   {
-                       unset($theModules['doc']);
-               }
-
                        // Get collapsed configuration
                if ($collapsable == 1) {
                        $config = is_array ($BE_USER->uc['moduleData']['alt_menu.php']) ? $BE_USER->uc['moduleData']['alt_menu.php'] : array();
diff --git a/typo3/mod/doc/clear.gif b/typo3/mod/doc/clear.gif
deleted file mode 100755 (executable)
index 9ed1269..0000000
Binary files a/typo3/mod/doc/clear.gif and /dev/null differ
diff --git a/typo3/mod/doc/conf.php b/typo3/mod/doc/conf.php
deleted file mode 100755 (executable)
index cbd2309..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$MLANG['default']['tabs_images']['tab'] = 'document.gif';
-$MLANG['default']['ll_ref']='LLL:EXT:lang/locallang_mod_doc.php';
-
-$MCONF['script']='../../alt_doc.php';
-$MCONF['access']='group,user';
-?>
\ No newline at end of file
diff --git a/typo3/mod/doc/document.gif b/typo3/mod/doc/document.gif
deleted file mode 100755 (executable)
index 34e51b8..0000000
Binary files a/typo3/mod/doc/document.gif and /dev/null differ
index 1dca698..e69de29 100755 (executable)
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Standard Document Module labels</description>
-               <type>module</type>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="mlang_labels_tablabel">Editing of records and documents</label>
-                       <label index="mlang_tabs_tab">Doc</label>
-               </languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/typo3/sysext/opendocs/ext_emconf.php b/typo3/sysext/opendocs/ext_emconf.php
new file mode 100644 (file)
index 0000000..21d5905
--- /dev/null
@@ -0,0 +1,51 @@
+<?php
+
+########################################################################
+# Extension Manager/Repository config file for ext: "opendocs"
+#
+# Auto generated 25-10-2007 20:57
+#
+# Manual updates:
+# Only the data in the array - anything else is removed by next write.
+# "version" and "dependencies" must not be touched!
+########################################################################
+
+$EM_CONF[$_EXTKEY] = array(
+       'title' => 'User>Open Documents',
+       'description' => 'Shows opened documents by the user. This concept is more widely used with the "Classic Backend".',
+       'category' => 'module',
+       'shy' => 1,
+       'dependencies' => '',
+       'conflicts' => '',
+       'priority' => '',
+       'loadOrder' => '',
+       'module' => 'mod',
+       'state' => 'stable',
+       'internal' => 0,
+       'uploadfolder' => 0,
+       'createDirs' => '',
+       'modify_tables' => '',
+       'clearCacheOnLoad' => 0,
+       'lockType' => '',
+       'author' => 'Benjamin Mack',
+       'author_email' => 'mack@xnos.org',
+       'author_company' => '',
+       'CGLcompliance' => '',
+       'CGLcompliance_note' => '',
+       'version' => '0.0.1',
+       '_md5_values_when_last_written' => 'a:6:{s:12:"ext_icon.gif";s:4:"fdf4";s:14:"ext_tables.php";s:4:"f241";s:13:"mod/clear.gif";s:4:"cc11";s:12:"mod/conf.php";s:4:"a8fe";s:16:"mod/document.gif";s:4:"fdf4";s:21:"mod/locallang_mod.xml";s:4:"7240";}',
+       'constraints' => array(
+               'depends' => array(
+                       'php' => '3.0.0-0.0.0',
+                       'typo3' => '4.1.0-0.0.0',
+               ),
+               'conflicts' => array(
+               ),
+               'suggests' => array(
+               ),
+       ),
+       'suggests' => array(
+       ),
+);
+
+?>
\ No newline at end of file
diff --git a/typo3/sysext/opendocs/ext_icon.gif b/typo3/sysext/opendocs/ext_icon.gif
new file mode 100755 (executable)
index 0000000..34e51b8
Binary files /dev/null and b/typo3/sysext/opendocs/ext_icon.gif differ
diff --git a/typo3/sysext/opendocs/ext_tables.php b/typo3/sysext/opendocs/ext_tables.php
new file mode 100644 (file)
index 0000000..de3305f
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+
+if (TYPO3_MODE=='BE')  {
+       t3lib_extMgm::addModule('user','doc','after:ws',t3lib_extMgm::extPath($_EXTKEY).'mod/');
+}
+?>
diff --git a/typo3/sysext/opendocs/mod/conf.php b/typo3/sysext/opendocs/mod/conf.php
new file mode 100644 (file)
index 0000000..93a35b9
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+define('TYPO3_MOD_PATH', 'sysext/opendocs/mod/');
+$BACK_PATH='../../../';
+
+$MLANG['default']['tabs_images']['tab'] = 'document.gif';
+$MLANG['default']['ll_ref'] = 'LLL:EXT:opendocs/mod/locallang_mod.php';
+
+$MCONF['script'] = $BACK_PATH.'alt_doc.php';
+$MCONF['access'] = 'group,user';
+$MCONF['name'] = 'opendocs';
+?>
diff --git a/typo3/sysext/opendocs/mod/document.gif b/typo3/sysext/opendocs/mod/document.gif
new file mode 100755 (executable)
index 0000000..34e51b8
Binary files /dev/null and b/typo3/sysext/opendocs/mod/document.gif differ
diff --git a/typo3/sysext/opendocs/mod/locallang_mod.xml b/typo3/sysext/opendocs/mod/locallang_mod.xml
new file mode 100644 (file)
index 0000000..1016d15
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+       <meta type="array">
+               <description>Standard Document Module labels</description>
+               <type>module</type>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="mlang_labels_tablabel">Editing of records and documents</label>
+                       <label index="mlang_tabs_tab">Open Documents</label>
+               </languageKey>
+       </data>
+</T3locallang>
index 3428c1d..2931edd 100644 (file)
@@ -116,10 +116,10 @@ if (TYPO3_MODE=='BE')     {
        'MOD:file/file.gif'  => array($temp_eP.'icons/module_file.gif','width="22" height="24"'),
        'MOD:file_list/list.gif'  => array($temp_eP.'icons/module_file_list.gif','width="22" height="24"'),
        'MOD:file_images/images.gif'  => array($temp_eP.'icons/module_file_images.gif','width="22" height="22"'),
-       'MOD:doc/document.gif'  => array($temp_eP.'icons/module_doc.gif','width="22" height="22"'),
        'MOD:user/user.gif'  => array($temp_eP.'icons/module_user.gif','width="22" height="22"'),
        'MOD:user_task/task.gif'  => array($temp_eP.'icons/module_user_taskcenter.gif','width="22" height="22"'),
        'MOD:user_setup/setup.gif'  => array($temp_eP.'icons/module_user_setup.gif','width="22" height="22"'),
+       'MOD:user_doc/document.gif'  => array($temp_eP.'icons/module_doc.gif','width="22" height="22"'),
        'MOD:tools/tool.gif'  => array($temp_eP.'icons/module_tools.gif','width="25" height="24"'),
        'MOD:tools_beuser/beuser.gif'  => array($temp_eP.'icons/module_tools_user.gif','width="24" height="24"'),
        'MOD:tools_em/em.gif'  => array($temp_eP.'icons/module_tools_em.gif','width="24" height="24"'),
@@ -150,4 +150,4 @@ if (TYPO3_MODE=='BE')       {
 
        //print_a($TBE_STYLES,2);
 }
-?>
\ No newline at end of file
+?>