aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Repository/Post.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-04-17 19:15:54 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-04-17 19:15:54 +0200
commit39bd200baed00b5b63cc62ce947ef708710ac81c (patch)
tree7bd8ca92f8a76f944614cb83246de9efd8a1d2fd /src/phorkie/Repository/Post.php
parentc5544ea6607e49bd5f3cceecd59903687e8b1654 (diff)
downloadphorkie-39bd200baed00b5b63cc62ce947ef708710ac81c.tar.gz
phorkie-39bd200baed00b5b63cc62ce947ef708710ac81c.zip
revision display support
Diffstat (limited to 'src/phorkie/Repository/Post.php')
-rw-r--r--src/phorkie/Repository/Post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php
index 045bba1..96e5c11 100644
--- a/src/phorkie/Repository/Post.php
+++ b/src/phorkie/Repository/Post.php
@@ -88,14 +88,14 @@ class Repository_Post
$bChanged = true;
} else if ($bUpload) {
move_uploaded_file(
- $_FILES['files']['tmp_name'][$num]['upload'], $file->getPath()
+ $_FILES['files']['tmp_name'][$num]['upload'], $file->getFullPath()
);
$command = $vc->getCommand('add')
->addArgument($file->getFilename())
->execute();
$bChanged = true;
} else if ($bNew || (isset($arFile['content']) && $file->getContent() != $arFile['content'])) {
- file_put_contents($file->getPath(), $arFile['content']);
+ file_put_contents($file->getFullPath(), $arFile['content']);
$command = $vc->getCommand('add')
->addArgument($file->getFilename())
->execute();