X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FFileList.php;h=2399b79cd5ef66f4b35e22b66de7a68e233e390d;hb=a8daf9136f2d4ba13a54d5122e2c3a9e65dc8c34;hp=ea410b1bd586b51192d2bb4fc4b9b733ae8a23c0;hpb=0f9303fde9161de7ea1240ecd7e47200822b40fb;p=diogenes.git diff --git a/plugins/FileList.php b/plugins/FileList.php index ea410b1..2399b79 100644 --- a/plugins/FileList.php +++ b/plugins/FileList.php @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -require_once 'Plugin/Skel/Filter.php'; +require_once 'Plugin/Filter.php'; require_once 'diogenes.icons.inc.php'; @@ -28,24 +28,16 @@ require_once 'diogenes.icons.inc.php'; * To make use of this plugin, insert {FileList} in your page where * the file list should appear. */ -class FileList extends Diogenes_Plugin_Skel_Filter { +class FileList extends Diogenes_Plugin_Filter { /** Plugin name */ var $name = "FileList"; /** Plugin description */ var $description = "This plugin allows you to insert a directory listing with icons and modification date. To make use of this plugin, insert {FileList} in your page where the file list should appear."; - - /** Constructor. - */ - function FileList() - { - global $page; - $this->declareParam('dirbase', ''); - $this->declareParam('urlbase', ''); - $this->declareParam('match', ''); - } - + /** Plugin parameters */ + var $params = array('dirbase' => "", 'urlbase' => "", 'match' => ""); + /** Prepare the output for a single file of the list. * @@ -93,7 +85,7 @@ class FileList extends Diogenes_Plugin_Skel_Filter { /* display the link */ if ($show) - return "
'.__("no files").' |