X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fadmin%2Fplugins.php;h=5ae4ae33d7cb7e6cb51382f48510bd5dba7046b7;hb=7aff44b2a3193e43aedfd7bf7fc3801bcffcf3e0;hp=c529c315b5e0663aac286e08b19b12914e4071e1;hpb=16807ba08214124b17b1f14226be12cdd646adc1;p=diogenes.git diff --git a/include/admin/plugins.php b/include/admin/plugins.php index c529c31..5ae4ae3 100644 --- a/include/admin/plugins.php +++ b/include/admin/plugins.php @@ -30,8 +30,7 @@ if ($dir != 0) /* plugin editor */ $editor = new Diogenes_Plugin_Editor($page->alias, $dir, $wperms); if ($dir == 0) { - $editor->readonly = 1; - $editor->hide_params(1); + $editor->set_mode(MODE_NOPARAMS); } $editor->run($page,'page_content'); $page->display('');