[TYPO3-dev] Extension Manager UPDATE! function

Jigal van Hemert jigal.van.hemert at typo3.org
Sun Jul 7 20:07:04 CEST 2013


Hi,

On 7-7-2013 16:43, Stanislas Rolland wrote:
>  > Actually the script should indicate if does not need to be run; then the
>  > icon would not be shown.
>
> I don't think so. The icon would still be shown, but when clicked the
> extension manager would display "No update necessary." Maybe this is a
> better message.

Philipp is right here. The technical details:

- the EM calls the function access() in the class ext_update in the file 
class.ext_update.php
- if access() returns TRUE the update icon will be shown with a link to 
call the main() function in ext_update
- in static_info_tables access() just returns TRUE and thus the update 
icon is always shown

If static_info_tables could device a simple and fast test that would 
determine if the conversion needed to be done it could use that in the 
access() function to control the update icon.

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org



More information about the TYPO3-dev mailing list