Project

General

Profile

Actions

Task #54126

closed

Add tool-function to strip PATH_site-part of paths

Added by Stefan Neufeind almost 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
-
Start date:
2013-12-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

There are a lot of places like: substr($fileName, strlen(PATH_site))

The toolfunction could avoid having to do this substr/strlen-magic over and over again and also avoid calculating the strlen() multiple times by caching that value.

Actions

Also available in: Atom PDF