]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-13766, print_login should not be an abstract function"
authordongsheng <dongsheng>
Thu, 18 Sep 2008 02:25:28 +0000 (02:25 +0000)
committerdongsheng <dongsheng>
Thu, 18 Sep 2008 02:25:28 +0000 (02:25 +0000)
repository/lib.php

index 704bcfcbb999b0133086f24a5eef96efbd36f813..6c1f6734ef41a9ebcb4529216f0490ad14fc4536 100644 (file)
@@ -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