more work on the plugins system
[diogenes.git] / include / admin / plugins.php
index c529c31..5ae4ae3 100644 (file)
@@ -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('');