Commit 0dc2544f by Aleksandar Hristov

Old title fix, added font size to the tinymce toolbar

1 parent 7be84deb
......@@ -69,10 +69,8 @@ else
}
else
{
$old_title = explode(": ", $old_title);
$section_to_edit = $old_title[1];
$page_to_edit = $old_title[0];
$page_id = $db->querySingle("SELECT id FROM pages WHERE title = '$page_to_edit'");
$section_to_edit = $old_title;
$page_id = $_POST['page_id'];
$id = $db->querySingle("SELECT id FROM sections WHERE page_id = '$page_id' AND title = '$section_to_edit'");
$title = $_POST['new_title'];
$text = $db->escapeString($_POST['new_text']);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!