summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/View.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r--lib/private/Files/View.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 3ab3ed89e6b..aaf14b4d7e0 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -682,7 +682,7 @@ class View {
return false;
}
} else {
- $hooks = ($this->file_exists($path)) ? array('update', 'write') : array('create', 'write');
+ $hooks = $this->file_exists($path) ? array('update', 'write') : array('create', 'write');
return $this->basicOperation('file_put_contents', $path, $hooks, $data);
}
}
@@ -1245,7 +1245,7 @@ class View {
private function runHooks($hooks, $path, $post = false) {
$relativePath = $path;
$path = $this->getHookPath($path);
- $prefix = ($post) ? 'post_' : '';
+ $prefix = $post ? 'post_' : '';
$run = true;
if ($this->shouldEmitHooks($relativePath)) {
foreach ($hooks as $hook) {