Stop reporting the pseudo options category as missing phrase
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / package / plugin / TemplateDeletePackageInstallationPlugin.class.php
1 <?php
2
3 namespace wcf\system\package\plugin;
4
5 use wcf\data\application\Application;
6
7 /**
8 * Deletes templates installed with the `template` package installation plugin.
9 *
10 * @author Matthias Schmidt
11 * @copyright 2001-2021 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @since 5.5
14 */
15 final class TemplateDeletePackageInstallationPlugin extends AbstractTemplateDeletePackageInstallationPlugin
16 {
17 /**
18 * @inheritDoc
19 */
20 protected function getLogTableName(): string
21 {
22 return 'wcf1_template';
23 }
24
25 /**
26 * @inheritDoc
27 */
28 protected function getFilePath(string $filename, string $application): string
29 {
30 return \sprintf(
31 '%s/templates/%s.tpl',
32 Application::getDirectory($application),
33 $filename
34 );
35 }
36 }