Add src directory included code source and tar.gz archive
This commit is contained in:
parent
c757583136
commit
16f10215e9
10 changed files with 4 additions and 4 deletions
|
|
@ -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');
|
||||
Loading…
Add table
Add a link
Reference in a new issue