commit c2a55d507d464a57066d42a492662861a755dc5e
parent 08015cb16acb35ca8bcd4dd740eaac6e820fcfe2
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 13 Dec 2014 12:47:57 +0100
fix writing fail :D
Diffstat:
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -37,7 +37,7 @@
}
function read_only(){
global $id, $connection, $read, $post_id_clean;
- global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory, $post_text_short;
+ global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category, $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
@@ -48,13 +48,13 @@
$post_text = $daten->text;
$post_author = $daten->author;
$post_date = $daten->date;
- $post_categrory = $daten->category;
+ $post_category = $daten->category;
$post_text_short = shortText($post_text,300);
}
$resultat->close();
} else {
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_category;
global $error;
$error = "1";
echo "Nothing to read from Database!";
@@ -63,14 +63,14 @@
$post_text = "Database error!";
$post_author = "Database error!";
$post_date = "Database error!";
- $post_categrory = "Database error!";
+ $post_category = "Database error!";
}
}
function read_category(){
global $category, $connection, $read, $category_id_clean;
- global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory, $post_text_short;
+ global $post_id, $post_title, $post_text, $post_author, $post_date, $post_category, $post_text_short;
if ($resultat = $connection->query("SELECT * FROM posts WHERE category LIKE '$category' ")) {
//echo 'SELECT * FROM posts WHERE id LIKE '.$id;
//Put database data in variables
@@ -81,13 +81,13 @@
$post_text = $daten->text;
$post_author = $daten->author;
$post_date = $daten->date;
- $post_categrory = $daten->category;
+ $post_category = $daten->category;
$post_text_short = shortText($post_text,300);
}
$resultat->close();
} else {
global $category, $connection, $read, $category_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_category;
global $error;
$error = "1";
echo "Nothing to read from Database!";
@@ -96,7 +96,7 @@
$post_text = "Database error!";
$post_author = "Database error!";
$post_date = "Database error!";
- $post_categrory = "Database error!";
+ $post_category = "Database error!";
}
}
diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php
@@ -150,7 +150,7 @@
<h4>
<span class='theauthor'><a href='#' rel='author'>$post_author</a></span> |
<time>$post_date</time> |
- <span class='thecategory'><a href='index.php?categrory=$post_categrory' rel='category tag'>$post_categrory</a></span></br>
+ <span class='thecategory'><a href='index.php?categrory=$post_category' rel='category tag'>$post_category</a></span></br>
</h4>
</div>
<div>
@@ -180,7 +180,7 @@
<h4>
<span class='theauthor'><a href='#' rel='author'>$post_author</a></span> |
<time>$post_date</time> |
- <span class='thecategory'><a href='index.php?categrory=$post_categrory' rel='category tag'>$post_categrory</a></span></br>
+ <span class='thecategory'><a href='index.php?categrory=$post_category' rel='category tag'>$post_category</a></span></br>
</h4>
</div>
<div>
@@ -206,7 +206,7 @@
<h4>
<span class='theauthor'><a href='#' rel='author'>$post_author</a></span> |
<time>$post_date</time> |
- <span class='thecategory'><a href='index.php?categrory=$post_categrory' rel='category tag'>$post_categrory</a></span></br>
+ <span class='thecategory'><a href='index.php?categrory=$post_category' rel='category tag'>$post_category</a></span></br>
</h4>
</div>
<div>