From: dongsheng Date: Fri, 27 Feb 2009 06:25:56 +0000 (+0000) Subject: "REPOSITORY/MDL-13766, should not use abstract function in repository base class... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9d6aa2869641c934cd69c5d347c44cf262c98a6c;p=moodle.git "REPOSITORY/MDL-13766, should not use abstract function in repository base class, inproperly use of parameters can break moodle page" --- 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();