[TYPO3-german] Typo 7.5 / includeLibs / userFunc
BugFix
typo3 at matrix-tools.de
Fri Oct 23 11:04:58 CEST 2015
Hallo - bis jetzt hatte ich immer meine userFunc so includiert & verarbeitet - das scheint in 7.5 nicht mehr zu funzen - kann mir da jemand auf die Sprünge helfen?
includeLibs.user_initMdetect = fileadmin/system/script/mdetect/initMdetect.php
temp.MDETECT = USER
temp.MDETECT {
userFunc = user_initMdetect->main
}
######################################################
// userFunc
class user_initMdetect
{
var $cObj;
function main($content,$conf)
{
require_once(dirname(__FILE__).'/mdetect.php');
$detectSmartPhone = new uagent_info();
if($detectSmartPhone->DetectSmartphone())
{
$isSmartPhone = 1;
} else {
$isSmartPhone = 0;
}
return $isSmartPhone;
}
}
More information about the TYPO3-german
mailing list