aboutsummaryrefslogtreecommitdiffstats
path: root/php/readdir.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/readdir.php')
-rw-r--r--php/readdir.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/readdir.php b/php/readdir.php
index e46d4ad..04587ee 100644
--- a/php/readdir.php
+++ b/php/readdir.php
@@ -1,10 +1,10 @@
<?php
require_once "node.php";
session_start();
- $user=$_SESSION["user_object"];
+ $user=$_SESSION['user_object'];
//echo '[ { "name": "file1.txt", "mimetype": "text/plain", "is_directory": false }, { "name": "file2.pdf", "mimetype": "application/pdf", "is_directory": false }, { "name": "dir", "mimetype": "", "is_directory": true } ] ';
- $ret=get_directory("/",$user);
+ $ret=get_directory_contents("/",$user);
$json=json_encode($ret);
echo $json;
?>