Commit 3c5fa94b by Aleksandar Hristov

Old title fix, added font size to the tinymce toolbar #2

1 parent 0dc2544f
......@@ -32,6 +32,7 @@ if($to_edit == "page")
$smarty->assign("old_title", $page_to_edit);
$old_text = $db->querySingle("SELECT text FROM pages WHERE title='$page_to_edit'");
$smarty->assign("old_text", $old_text);
$smarty->assign("page_id", "");
$smarty->display("tpl/editor.tpl");
}
}
......@@ -44,9 +45,14 @@ else if($to_edit == "section")
}
else
{
$section_to_edit = $_POST['section_to_edit'];
$old_title = $_POST['section_to_edit'];
$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'");
$smarty->assign("old_title", urlencode($section_to_edit));
$old_text = $db->querySingle("SELECT text FROM pages WHERE title='$section_to_edit'");
$smarty->assign("page_id", $page_id);
$old_text = $db->querySingle("SELECT text FROM sections WHERE title='$section_to_edit' AND page_id='$page_id'");
$smarty->assign("old_text", $old_text);
$smarty->display("tpl/editor.tpl");
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!