Fix token deprecation to be a check not an upgrade notice
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 27 Aug 2021 01:21:43 +0000 (13:21 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 27 Aug 2021 01:24:56 +0000 (13:24 +1200)
commit581691871b358449d8e6f490e1446ca6298c65ed
treeb9e4e2b3a87deceddf1b7168238e1ecdf3449df6
parentc2c4362b02429bf4df7b5fbc2d9a9378073434c0
Fix token deprecation to be a check not an upgrade notice

It turns out the upgrade notice is calculated before the upgrade action runs
- this means that currently the upgrade notice is displayed even though
manual intervention will only be required in edge cases (since the
upgrade replaces the most common usage and it would require the
presence of an if or something like that for it to still exist).
CRM/Upgrade/Incremental/MessageTemplates.php
CRM/Upgrade/Incremental/php/FiveFortyOne.php
CRM/Utils/Check/Component/Tokens.php [new file with mode: 0644]
CRM/Utils/Token.php
tests/phpunit/CRM/Upgrade/Incremental/BaseTest.php