]> git.mjollnir.org Git - moodle.git/commitdiff
"REPOSITORY/MDL-13766, should not use abstract function in repository base class...
authordongsheng <dongsheng>
Fri, 27 Feb 2009 06:25:56 +0000 (06:25 +0000)
committerdongsheng <dongsheng>
Fri, 27 Feb 2009 06:25:56 +0000 (06:25 +0000)
repository/lib.php

index 4ab8d8e848999493877ba41e3b70ceda09563e4a..ea8720ee7c8dc63d50bcc7481812a0b9257aa6c9 100644 (file)
@@ -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();