*/
function danish_strtoupper($string) {
$value = strtoupper($string);
- return strtr($value, 'áéúíâêûôîæøåäöü', 'ÁÉÚÍÄËÜÖÏÆØÅÄÖÜ');
+ return strtr($value, '���������������', '���������������');
}
/**
* Only known characters will be converted, so don't expect a result for any character.
* (DEPRECIATED: Works only for western europe single-byte charsets! Use t3lib_cs::specCharsToASCII() instead!)
*
- * ä => ae, Ö => Oe
+ * � => ae, � => Oe
*
* @param string String to convert.
* @return string
*/
function convUmlauts($str) {
- $pat = array ( '/ä/', '/Ä/', '/ö/', '/Ö/', '/ü/', '/Ü/', '/ß/', '/å/', '/Å/', '/ø/', '/Ø/', '/æ/', '/Æ/' );
+ $pat = array ( '/�/', '/�/', '/�/', '/�/', '/�/', '/�/', '/�/', '/�/', '/�/', '/�/', '/�/', '/�/', '/�/' );
$repl = array ( 'ae', 'Ae', 'oe', 'Oe', 'ue', 'Ue', 'ss', 'aa', 'AA', 'oe', 'OE', 'ae', 'AE' );
return preg_replace($pat,$repl,$str);
}
* @param boolean Wrap script element in linebreaks? Default is TRUE.
* @return string The wrapped JS code, ready to put into a XHTML page
* @author Ingmar Schlecht <ingmars@web.de>
- * @author René Fritz <r.fritz@colorcube.de>
+ * @author Ren� Fritz <r.fritz@colorcube.de>
*/
function wrapJS($string, $linebreak=TRUE) {
if(trim($string)) {
* @return array An array with two num. keys: key0: The data structure is returned in this key (array) UNLESS an error happend in which case an error string is returned (string). key1: The used sheet key value!
*/
function resolveSheetDefInDS($dataStructArray,$sheet='sDEF') {
+ if (!is_array ($dataStructArray)) return 'Data structure must be an array';
+
if (is_array($dataStructArray['sheets'])) {
$singleSheet = FALSE;
if (!isset($dataStructArray['sheets'][$sheet])) {
* @param string Sub type like file extensions or similar. Defined by the service.
* @param mixed List of service keys which should be exluded in the search for a service. Array or comma list.
* @return object The service object or an array with error info's.
- * @author René Fritz <r.fritz@colorcube.de>
+ * @author Ren� Fritz <r.fritz@colorcube.de>
*/
function &makeInstanceService($serviceType, $serviceSubType='', $excludeServiceKeys=array()) {
global $T3_SERVICES, $T3_VAR, $TYPO3_CONF_VARS;