Project

General

Profile

Actions

Bug #17614

closed

Modify class TSpagegen to call it as an object.

Added by Dmytro about 17 years ago. Updated over 9 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Class TSpagegen made in a way that it called statically, with :: from typo3/sysext/cms/tslib/pagegen.php. And also it contains static calls to it's own methods. This way of creating that class does not allow to extend it. E.g. I have wrote extension which modifies <base /> tag functionality to print it as <base ></base> for buggy IE, by extending TSpagegen. But as TSpagegen called statically I can not use my extension (and have to patch TSpagegen manually all the time after upgrade).
So, there is need to change only these 2 files (in version 4.2.0a, 4.1.2, 4.0.7).
typo3/sysext/cms/tslib/pagegen.php are same in all current versions. So t possible to use patch for them.
typo3/sysext/cms/tslib/class.tslib_pagegen.php differs a little bit. If you need patch for all the version I will send it.

(issue imported from #M6362)


Files

pagegen.diff (430 Bytes) pagegen.diff Administrator Admin, 2007-09-18 17:25
pagegen2.diff (1.28 KB) pagegen2.diff Administrator Admin, 2007-09-19 16:18
class.tslib_pagegen.diff (3.17 KB) class.tslib_pagegen.diff Administrator Admin, 2007-09-19 16:29
pagegen3.diff (1.28 KB) pagegen3.diff Administrator Admin, 2007-09-19 16:35
class.tslib_pagegen2.diff (3.17 KB) class.tslib_pagegen2.diff Administrator Admin, 2007-09-19 16:36
class.tslib_pagegen407.diff (2.38 KB) class.tslib_pagegen407.diff Administrator Admin, 2007-09-19 16:52
Actions

Also available in: Atom PDF