rpicms

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

commit dc6ab9dffba714f4e52a1da584a2ec64abb258f3
parent bb5fcfe67c2e33add517d824856046be801559a0
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 18:26:58 +0100

short text to 140 character

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

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -26,7 +26,7 @@ } function read(){ global $id, $connection, $read, $post_id_clean; - global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory; + global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory, $post_text_short; if ($resultat = $connection->query("SELECT * FROM posts WHERE id LIKE '$id'")) { //echo 'SELECT * FROM posts WHERE id LIKE '.$id; //Put database data in variables @@ -38,7 +38,7 @@ $post_author = $daten->author; $post_date = $daten->date; $post_categrory = $daten->category; - $post_text_short = shortText($post_text,70); + $post_text_short = shortText($post_text,140); } $resultat->close(); } else {