Add src directory included code source and tar.gz archive

This commit is contained in:
JBthePenguin 2021-05-31 14:06:54 +02:00
parent c757583136
commit 16f10215e9
10 changed files with 4 additions and 4 deletions

View file

@ -1,26 +0,0 @@
<?php
namespace Garradin;
$session->requireAccess($session::SECTION_CONFIG, $session::ACCESS_ADMIN);
if (f('save'))
{
$form->check('config_plugin_' . $plugin->id(), [
'display_hello' => 'boolean',
]);
if (!$form->hasErrors())
{
try {
$plugin->setConfig('display_hello', (bool) f('display_hello'));
utils::redirect(utils::plugin_url());
}
catch (UserException $e)
{
$form->addError($e->getMessage());
}
}
}
$tpl->display(PLUGIN_ROOT . '/templates/config.tpl');