From: dongsheng Date: Thu, 18 Sep 2008 02:25:28 +0000 (+0000) Subject: "MDL-13766, print_login should not be an abstract function" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1d66f2b20e98592d813fe6fdeee15405228388dc;p=moodle.git "MDL-13766, print_login should not be an abstract function" --- diff --git a/repository/lib.php b/repository/lib.php index 704bcfcbb9..6c1f6734ef 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -831,7 +831,6 @@ abstract class repository { * * @param string $parent The parent path, this parameter can * a folder name, or a identification of folder - * @param string $search The text will be searched. * @return array the list of files, including meta infomation */ abstract public function get_listing($parent = '/'); @@ -873,7 +872,9 @@ abstract class repository { * Show the login screen, if required * This is an abstract function, it must be overriden. */ - abstract public function print_login(); + public function print_login(){ + return $this->get_listing(); + } /** * Show the search screen, if required