Overview
Comment: | Fix for plugins: allow index.php call in subdirectories |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
27180c847efcc8fba6d7443b18027bed |
User & Date: | bohwaz on 2021-12-15 23:40:14 |
Other Links: | manifest | tags |
Context
2021-12-15
| ||
23:40 | Make the look of buttons and link buttons consistent when using "main" check-in: c3b90b00e6 user: bohwaz tags: trunk, stable | |
23:40 | Fix for plugins: allow index.php call in subdirectories check-in: 27180c847e user: bohwaz tags: trunk, stable | |
23:39 | Remove unused option from widgetIcon, allow other attributes check-in: b7c62126db user: bohwaz tags: trunk, stable | |
Changes
Modified src/www/admin/plugin.php from [306b922a17] to [3da4ea03c5].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <?php namespace Garradin; require_once __DIR__ . '/_inc.php'; $page = qg('_u') ?: 'index.php'; $plugin = new Plugin(qg('_p')); define('Garradin\PLUGIN_ROOT', $plugin->path()); define('Garradin\PLUGIN_URL', ADMIN_URL . 'plugin/' . $plugin->id() . '/'); define('Garradin\PLUGIN_QSP', '?'); $tpl->assign('plugin', $plugin->getInfos()); $tpl->assign('plugin_url', PLUGIN_URL); $tpl->assign('plugin_root', PLUGIN_ROOT); $plugin->call('admin/' . $page); | > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <?php namespace Garradin; require_once __DIR__ . '/_inc.php'; $page = qg('_u') ?: 'index.php'; if (substr($page, -1) == '/') { $page .= 'index.php'; } $plugin = new Plugin(qg('_p')); define('Garradin\PLUGIN_ROOT', $plugin->path()); define('Garradin\PLUGIN_URL', ADMIN_URL . 'plugin/' . $plugin->id() . '/'); define('Garradin\PLUGIN_QSP', '?'); $tpl->assign('plugin', $plugin->getInfos()); $tpl->assign('plugin_url', PLUGIN_URL); $tpl->assign('plugin_root', PLUGIN_ROOT); $plugin->call('admin/' . $page); |