---
title: "Typo 7.5 / includeLibs / userFunc"
url: "https://www.typo3.net/d/121137-typo-75-includelibs-userfunc"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","TYPO3 7","Update & Upgrade"]
created: "2015-10-23"
last_reply: "2015-10-26"
replies: 1
solved: true
page: 1
pages: 1
lang: "de"
---

# Typo 7.5 / includeLibs / userFunc

TYPO3 › TypoScript · 1 Antwort · gelöst · gestartet 2015-10-23

## Frage

**BugFix** · 2015-10-23 · [Beitrag #1](https://www.typo3.net/d/121137-typo-75-includelibs-userfunc/1)

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;
    }
}

## Beste Antwort

**BugFix** · 2015-10-26 · [Beitrag #2](https://www.typo3.net/d/121137-typo-75-includelibs-userfunc/2)

Ok - Lösung gefunden...

Muss ab jetzt so icludiert werden

temp.MDETECT = USER
temp.MDETECT {
    userFunc = user_initMdetect->main
    includeLibs = fileadmin/system/script/mdetect/initMdetect.php
}

## Antworten

### [#2](https://www.typo3.net/d/121137-typo-75-includelibs-userfunc/2) · BugFix · 2015-10-26 · Beste Antwort

(Text siehe oben unter „Beste Antwort“.)

---

Quelle: „Typo 7.5 / includeLibs / userFunc“, typo3.net, https://www.typo3.net/d/121137-typo-75-includelibs-userfunc
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
