rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 8cbb585120ef1dd3bcdc18099bd3969a3d0795ce
parent 86627cd4ee03fc457243d400a28d11a2a895cb16
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 14 Dec 2014 10:58:06 +0100

fix links in posts.php

Diffstat:
Mcore/backend/blog/posts.php | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -14,10 +14,11 @@ $root_1 = realpath($_SERVER["DOCUMENT_ROOT"]); $currentdir = getcwd(); $root_2 = str_replace($root_1, '', $currentdir); $root_3 = explode("/", $root_2); -if ($root_3[1] = "core" or $root_3[1] = "themes" or $root_3[1] = "install") { - $root = realpath($_SERVER["DOCUMENT_ROOT"]); +if ($root_3[1] == 'core') { + echo $root_3[1]; + $root = realpath($_SERVER["DOCUMENT_ROOT"]); }else{ - $root = $root_1 . '/' . $root_3[1]; + $root = $root_1 . '/' . $root_3[1]; } //Check if Database connection established