Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Websites
/
SlimSpots Wiki
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 3c5fa94b
authored
2015-02-16 13:26:13 +0100
by
Aleksandar Hristov
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Old title fix, added font size to the tinymce toolbar #2
1 parent
0dc2544f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
html/editor.php
html/editor.php
View file @
3c5fa94
...
...
@@ -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"
);
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment