summaryrefslogtreecommitdiffstats
path: root/apps/files_texteditor
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-05 14:00:49 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-05 14:03:44 +0100
commit30673e478672af316c057f562a8a02babdbd3160 (patch)
tree90c5156def04dee80e9f96ce41ad2e49c34bb3df /apps/files_texteditor
parent25e777ef5e9c68ac45d32b71a0174febf74d47ef (diff)
downloadnextcloud-server-30673e478672af316c057f562a8a02babdbd3160.tar.gz
nextcloud-server-30673e478672af316c057f562a8a02babdbd3160.zip
writable not writeable
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r--apps/files_texteditor/ajax/loadfile.php2
-rw-r--r--apps/files_texteditor/ajax/savefile.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_texteditor/ajax/loadfile.php b/apps/files_texteditor/ajax/loadfile.php
index 64e016be8c2..8ece844aa29 100644
--- a/apps/files_texteditor/ajax/loadfile.php
+++ b/apps/files_texteditor/ajax/loadfile.php
@@ -33,7 +33,7 @@ $filename = isset($_GET['file']) ? $_GET['file'] : '';
if(!empty($filename))
{
$path = $dir.'/'.$filename;
- if(OC_Filesystem::is_writeable($path))
+ if(OC_Filesystem::is_writable($path))
{
$mtime = OC_Filesystem::filemtime($path);
$filecontents = OC_Filesystem::file_get_contents($path);
diff --git a/apps/files_texteditor/ajax/savefile.php b/apps/files_texteditor/ajax/savefile.php
index 846159c13b7..589428d1862 100644
--- a/apps/files_texteditor/ajax/savefile.php
+++ b/apps/files_texteditor/ajax/savefile.php
@@ -46,7 +46,7 @@ if($path != '' && $mtime != '')
{
// File same as when opened
// Save file
- if(OC_Filesystem::is_writeable($path))
+ if(OC_Filesystem::is_writable($path))
{
OC_Filesystem::file_put_contents($path, $filecontents);
// Clear statcache