X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fadmin%2Fplugins.php;h=3f2f3fed01c9d2728429232ffbbbf90c5ef7fb54;hb=1c03363d9ce0dbde8e2be667058538441d16b015;hp=5ae4ae33d7cb7e6cb51382f48510bd5dba7046b7;hpb=7aff44b2a3193e43aedfd7bf7fc3801bcffcf3e0;p=diogenes.git diff --git a/include/admin/plugins.php b/include/admin/plugins.php index 5ae4ae3..3f2f3fe 100644 --- a/include/admin/plugins.php +++ b/include/admin/plugins.php @@ -20,7 +20,7 @@ if ($dir != 0) { $bpage = Diogenes_Barrel_Page::fromDb($bbarrel, $dir); $page->assign('greeting',__("Page plugins ") . " - " . ($bpage->props['location'] ? $bpage->props['location'] : __("home")) ); - $page->toolbar(__("Page"), $bpage->make_toolbar()); + $page->toolbar(__("Page"), $bpage->make_toolbar($page)); $wperms = $bpage->props['wperms']; } else { $page->assign('greeting',__("Available plugins")); @@ -30,7 +30,8 @@ if ($dir != 0) /* plugin editor */ $editor = new Diogenes_Plugin_Editor($page->alias, $dir, $wperms); if ($dir == 0) { - $editor->set_mode(MODE_NOPARAMS); + $editor->readonly = 1; + $editor->hide_params(1); } $editor->run($page,'page_content'); $page->display('');