From 1d66f2b20e98592d813fe6fdeee15405228388dc Mon Sep 17 00:00:00 2001 From: dongsheng Date: Thu, 18 Sep 2008 02:25:28 +0000 Subject: [PATCH] "MDL-13766, print_login should not be an abstract function" --- repository/lib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5