From 9d6aa2869641c934cd69c5d347c44cf262c98a6c Mon Sep 17 00:00:00 2001 From: dongsheng Date: Fri, 27 Feb 2009 06:25:56 +0000 Subject: [PATCH] "REPOSITORY/MDL-13766, should not use abstract function in repository base class, inproperly use of parameters can break moodle page" --- repository/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository/lib.php b/repository/lib.php index 4ab8d8e848..ea8720ee7c 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -1535,7 +1535,8 @@ abstract class repository { * a folder name, or a identification of folder * @return array the list of files, including meta infomation */ - abstract public function get_listing($path = '/', $page=''); + public function get_listing($path = '', $page = '') { + } /** * Search files in repository @@ -1572,7 +1573,6 @@ abstract class repository { /** * Show the login screen, if required - * This is an abstract function, it must be overriden. */ public function print_login(){ return $this->get_listing(); -- 2.39.5