Project

General

Profile

Actions

Feature #23394

closed

XCLASS Code looks ugly and could get a facelift

Added by Popy no-lastname-given over 13 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-08-18
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
medium
Sprint Focus:

Description

Since years we have the same (ugly) XCLASS statement at the end of every php class file, and we still have the same "global scope bug" if file is not included with t3lib_div::requireFile

So, the idea is to replace :

if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_extfilefunc.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_extfilefunc.php']);
}

by :

t3lib_div::XCLASS;

(issue imported from #M15486)


Files

t3lib_div.patch (781 Bytes) t3lib_div.patch Administrator Admin, 2010-08-18 10:35
15486.patch (1.42 KB) 15486.patch Administrator Admin, 2010-12-10 14:40

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #24210: PHP notices from XCLASS inclusionsClosedSusanne Moog2010-11-26

Actions
Actions

Also available in: Atom PDF