Project

General

Profile

Actions

Task #54126

closed

Add tool-function to strip PATH_site-part of paths

Added by Stefan Neufeind over 10 years ago. Updated over 5 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