Project

General

Profile

Bug #20257 » bug10816-coreCallsDeprecatedMICN.patch

Administrator Admin, 2009-05-20 10:57

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
// Split parts
$parts = explode('->',$funcName);
if (count($parts)==2) { // Class
$cls = t3lib_div::makeInstanceClassName($parts[0]);
$classObj = t3lib_div::makeInstance($parts[0]);
// Check whether class is available:
if (class_exists($cls)) {
$classObj = new $cls;
if (is_object($classObj)) {
if (method_exists($classObj, $parts[1])) {
$classObj->cObj = &$this;
$content = call_user_func_array(array($classObj, $parts[1]), array($content, $conf));
......
$GLOBALS['TT']->setTSlogMessage('Method "'.$parts[1].'" did not exist in class "'.$cls.'"',3);
}
} else {
unset($classObj);
$GLOBALS['TT']->setTSlogMessage('Class "'.$cls.'" did not exist',3);
}
} else { // Function
typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc (working copy)
*/
function sendHTMLMail($content,$recipient,$dummy,$fromEmail,$fromName,$replyTo='') {
if (trim($recipient) && trim($content)) {
$cls=t3lib_div::makeInstanceClassName('t3lib_htmlmail');
// Avoid autoloading of t3lib_htmlmail, since it's only a strategy check here:
if (class_exists($cls, false)) { // If htmlmail lib is included, then generate a nice HTML-email
if (class_exists('t3lib_htmlmail', false)) { // If htmlmail lib is included, then generate a nice HTML-email
$parts = spliti('<title>|</title>',$content,3);
$subject = trim($parts[1]) ? trim($parts[1]) : 'TYPO3 FE Admin message';
typo3/sysext/cms/tslib/media/scripts/wapversionLib.inc (working copy)
function main_wapversion($content,$conf) {
$GLOBALS['TSFE']->set_no_cache();
$className=t3lib_div::makeInstanceClassName('t3lib_xml');
$xmlObj = new $className('wml');
$xmlObj = t3lib_div::makeInstance('t3lib_xml','wml');
$xmlObj->XMLdebug=$conf['debug'];
// Creating top level object
typo3/sysext/cms/tslib/media/scripts/xmlversionLib.inc (working copy)
* @return string XML content
*/
function main_xmlversion($content,$conf) {
$className=t3lib_div::makeInstanceClassName('t3lib_xml');
$xmlObj = new $className('typo3_page');
$xmlObj = t3lib_div::makeInstance('t3lib_xml','typo3_page');
$xmlObj->XMLdebug=0;
$xmlObj->setRecFields('pages','doktype,title,alias,hidden,starttime,endtime,fe_group,url,target,no_cache,shortcut,keywords,description,abstract,author,author_email,newUntil,lastUpdated,cache_timeout');
$xmlObj->setRecFields('tt_content','CType,header,header_link,bodytext,image,imagewidth,imageorient,media,records,colPos,starttime,endtime,fe_group');
(2-2/5)