浏览代码

Fix php7 compatibility

Laurent Destailleur 8 年之前
父节点
当前提交
f72ac3cf45
共有 1 个文件被更改,包括 9 次插入6 次删除
  1. 9 6
      htdocs/api/class/api_documents.class.php

+ 9 - 6
htdocs/api/class/api_documents.class.php

@@ -49,20 +49,23 @@ class Documents extends DolibarrApi
         $this->db = $db;
     }
 
+
     /**
      * Return a document
      *
      * @param   string  $module_part    Module part for file
      * @param   string  $filename       File name
-     *
+     * 
+     * @url	GET {module_part}/{filename}
+     * 
      * @return  array                   Array with data of file
      * @throws RestException
      */
-     public function index($module_part, $filename) {
-            return array('note'=>'FeatureNotYetAvailable');
-     }
-
-
+    public function get($module_part, $filename) {
+        return array('note'=>'FeatureNotYetAvailable');
+    }
+     
+     
     /**
      * Push a file. 
      * Test sample 1: { "filename": "mynewfile.txt", "modulepart": "facture", "ref": "FA1701-001", "subdir": "", "filecontent": "content text", "fileencoding": "", "overwriteifexists": "0" }.