Commit 32ed9f4b authored by Michael Stucki's avatar Michael Stucki
Browse files

* Fixed bug #0000459: undefined function: float() in class.t3lib_cs.php

* New feature #0000850: Store last built query independent of t3lib_db->debugOutput. Thanks to Rainer Kuhn.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_3-8@741 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 19ccacb7
2005-05-20 Michael Stucki <michael@typo3.org>
* Fixed bug #0000459: undefined function: float() in class.t3lib_cs.php
* New feature #0000850: Store last built query independent of t3lib_db->debugOutput. Thanks to Rainer Kuhn.
2005-05-19 Michael Stucki <michael@typo3.org>
* Small fix in typo3/sysext/install/mod/class.tx_install.php: GraphicsMagick executed without any parameters caused a server error (used in the Install Tool for guessing the product version)
* Fixed bug #0001065: Labels of radio buttons in listview were not shown. (Thanks to Sebastian Kurfuerst)
* Changed innerWrap and outerWrap in editPanels to be stdWrap'able. (Thanks to Martin Kutschker)
* Fixed bug #0000098: Forms elements should not contain a wrap-attribute for textareas, so this is now optional. (Thanks to Martin Kutschker)
* Fixed bug #0001075: XHTML compliance of FORM elements. (Thanks to Martin Kutschker)
* Fixed bug #0001061: XHTML cleaning did not support the <param /> tag. (Thanks to Martin Kutschker)
* Fixed bug #0001065: Labels of radio buttons in listview were not shown. Thanks to Sebastian Kurfuerst.
* Changed innerWrap and outerWrap in editPanels to be stdWrap'able. Thanks to Martin Kutschker.
* Fixed bug #0000098: Forms elements should not contain a wrap-attribute for textareas, so this is now optional. Thanks to Martin Kutschker.
* Fixed bug #0001075: XHTML compliance of FORM elements. Thanks to Martin Kutschker.
* Fixed bug #0001061: XHTML cleaning did not support the <param /> tag. Thanks to Martin Kutschker.
2005-05-19 Karsten Dambekalns <karsten@typo3.org>
2005-05-19 Karsten Dambekalns <karsten@typo3.org>
* typo3/sysext/install/mod/class.tx_install.php: Added a button to generate a random encryption key.
* typo3/sysext/cms/layout/db_layout.php: Fix for bug #1042. Thanks to Sebastian Kurfuerst and Michael Stucki.
......@@ -89,13 +94,13 @@
2005-04-28 Rupert Germann <rupi@gmx.li>
* Fixed bug #0000416: now the wrong default values in autoincrement lines will be removed from .sql files before they are written to the database. This fixes the problem that tables were not created under MySQL 4.1.x
* Fixed bug #0000955: Removed a double strcmp in class.t3lib_install
* Fixed bug #0000955: Removed a double strcmp in class.t3lib_install.php
* Removed the mysql-version ckeck from class.tx_install.php. With current MySQL versions this is not needed anymore.
* New features for the pi_base pagebrowser: first and last links, "floating" of the displayed pages, all wraps are now configurable, all hardcoded HTML can be substituted with own wraps, and many more.
The behaviour of the pagebrowser doesn't change if the additional "internal"-array-elements don't exist.
This array has to be set from an extension which passes its TS-config to the pagebrowser function. See comments in function for details.
Thank goes to Michael H.E. Roth for developing most of the changes.
* Fixed bug #0000911: setting ['BE']['lockIP'] to a value < 4 does not log out the BEuser anymore.
* Fixed bug #0000911: setting ['BE']['lockIP'] to a value < 4 does not log out the BE user anymore.
* Fixed bug #0000570: now it is prevented that umlauts or other special characters are inserted as "accessKey".
2005-04-28 Christian Jul Jensen <julle(at)typo3(dot)org>
......
......@@ -1499,7 +1499,7 @@ class t3lib_cs {
* @see strtolower(), strtoupper()
*/
function conv_case($charset,$string,$case) {
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring' && float(phpversion()) >= 4.3) {
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring' && (float)phpversion() >= 4.3) {
if ($case == 'toLower') {
return mb_strtolower($string,'utf-8');
} else {
......
......@@ -134,8 +134,9 @@ class t3lib_DB {
// Debug:
var $debugOutput = FALSE; // Set "TRUE" if you want database errors outputted.
var $debugOutput = FALSE; // Set "TRUE" if you want database errors outputted.
var $debug_lastBuiltQuery = ''; // Internally: Set to last built query (not necessarily executed...)
var $store_lastBuiltQuery = FALSE; // Set "TRUE" if you want the last built query to be stored in $debug_lastBuiltQuery independent of $this->debugOutput
// Default link identifier:
var $link;
......@@ -351,7 +352,7 @@ class t3lib_DB {
)';
// Return query:
if ($this->debugOutput) $this->debug_lastBuiltQuery = $query;
if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query;
return $query;
}
}
......@@ -388,7 +389,7 @@ class t3lib_DB {
'.$where : '');
// Return query:
if ($this->debugOutput) $this->debug_lastBuiltQuery = $query;
if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query;
return $query;
}
} else {
......@@ -414,7 +415,7 @@ class t3lib_DB {
WHERE
'.$where : '');
if ($this->debugOutput) $this->debug_lastBuiltQuery = $query;
if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query;
return $query;
} else {
die('<strong>TYPO3 Fatal Error:</strong> "Where" clause argument for DELETE query was not a string in $this->DELETEquery() !');
......@@ -461,7 +462,7 @@ class t3lib_DB {
}
// Return query:
if ($this->debugOutput) $this->debug_lastBuiltQuery = $query;
if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query;
return $query;
}
......
......@@ -74,7 +74,7 @@ $TYPO3_CONF_VARS = Array(
'no_pconnect' => 0, // Boolean: If true, "connect" is used instead of "pconnect" when connecting to the database!
'multiplyDBfieldSize' => 1, // Double: 1-5: Amount used to multiply the DB field size when the install tool is evaluating the database size (eg. "2.5"). This is useful if you want to expand the size of fields for utf-8 etc. For western european sites using utf-8 the need should not be for more than twice the normal single-byte size (2) and for chinese / asian languages 3 should suffice.
'setMemoryLimit' => 0, // Integer, memory_limit in MB: If more than 16, TYPO3 will try to use ini_set() to set the memory limit of PHP to the value. This works only if the function ini_set() is not disabled by your sysadmin.
'forceReturnPath' => 0, // Boolean: Force return path in mail() calls. If this is set, all calls to mail() done by t3lib_htmlmail will be called with '-f<return_path> as the 5th parameter. This will make the return-path correct on almost all unix systems. There is a known problem with postfix below version 2: Mails are not sent if this option is set and postfix is used. On windows platforms, the Return-Path is set via a call to ini_set. This has no effect if php safe_mode is on.
'forceReturnPath' => 0, // Boolean: Force return path to be applied in mail() calls. If this is set, all calls to mail() done by t3lib_htmlmail will be called with '-f<return_path> as the 5th parameter. This will make the return path correct on almost all Unix systems. There is a known problem with Postfix below version 2: Mails are not sent if this option is set and Postfix is used. On Windows platforms, the return path is set via a call to ini_set. This has no effect if safe_mode in PHP is on.
'displayErrors' => -1, // Integer, -1,0,1. 0=Do not display any PHP error messages. 1=Display error messages. -1=Default setting. With this option, you can override the PHP setting "display_errors". It is suggested that you set this to "0" and enable the "error_log" option in php.ini instead.
'serverTimeZone' => 1 // Integer, GMT offset of servers time (from time()). Default is "1" which is "GMT+1" (central european time). This value can be used in extensions that are GMT aware and wants to convert times to/from other timezones.
),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment