|
From: <txm...@us...> - 2014-06-26 10:30:30
|
Revision: 12648
http://sourceforge.net/p/xoops/svn/12648
Author: txmodxoops
Date: 2014-06-26 10:30:26 +0000 (Thu, 26 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/about.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/about.php 2014-06-25 19:02:35 UTC (rev 12647)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/admin/about.php 2014-06-26 10:30:26 UTC (rev 12648)
@@ -62,7 +62,7 @@
$content = $this->getHeaderFilesComments($module, $filename);
$content .= <<<EOT
include 'header.php';
-\$template_main = 'admin_about.tpl';
+\$template_main = '{$module_name}_about.tpl';
\$GLOBALS['xoopsTpl']->assign('navigation', \$adminMenu->addNavigation('about.php'));
\$GLOBALS['xoopsTpl']->assign('about', \$adminMenu->renderAbout('{$module_donations}', false));
include 'footer.php';
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-25 19:02:35 UTC (rev 12647)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-06-26 10:30:26 UTC (rev 12648)
@@ -31,7 +31,8 @@
* @public function constructor
* @param null
*/
- public function __construct() {
+ public function __construct() {
+ parent::__construct();
$this->tdmcfile = TDMCreateFile::getInstance();
}
/*
@@ -352,7 +353,6 @@
'options' => "{$tables[$i]->getVar('table_fieldname')}|5|25|0",
'template' => "'{$stl_mod_name}_block_{$table_name}.tpl");\n\n
EOT;
- $this->setKeywords($table_name);
}
}
return $ret;
@@ -369,7 +369,13 @@
$ret = <<<EOT
// ------------------- Config -------------------\n
EOT;
- $ret .= <<<EOT
+ $fields = $this->getTableFields($table->getVar('table_id'));
+ foreach (array_keys($fields) as $f)
+ {
+ $field_element = $fields[$f]->getVar('field_element');
+ }
+ if( $field_element == 3 ) {
+ $ret .= <<<EOT
// Editor
xoops_load('xoopseditorhandler');
\$editor_handler = XoopsEditorHandler::getInstance();
@@ -382,6 +388,7 @@
'options' => array_flip(\$editor_handler->getList()),
'default' => "dhtml");\n\n
EOT;
+ }
if ( $module->getVar('mod_permissions') == 1 ) {
$ret .= <<<EOT
// Get groups
|