Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

apply realpath only on existing path structure

  • Loading branch information...
commit 6b469a2375de50c60e69ddf14489c92bfd9f4004 1 parent 9044944
@kmohrf kmohrf authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 Entity/Content.php
View
8 Entity/Content.php
@@ -96,7 +96,7 @@
/**
* @ORM\Column(type="datetime", name="time_published")
- *
+ *
* @FDCMS\View(list=true, priority=7000, format="d. m. Y H:i")
*
* @var \DateTime
@@ -115,7 +115,7 @@
/**
* @Gedmo\Locale
*
- * @var string
+ * @var string
*/
protected $locale = "de";
@@ -180,7 +180,7 @@ public function getFile() {
}
protected function getUploadRootDirectory() {
- return realpath(__DIR__ . "/../../../../../web" . $this->getUploadDirectory());
+ return realpath(__DIR__ . "/../../../../../web") . $this->getUploadDirectory();
}
protected function getUploadDirectory() {
@@ -246,4 +246,4 @@ public function setTranslatableLocale($locale) {
public function getTranslatableLocale() {
return $this->locale;
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.