Commit 41278136 authored by jerry wham's avatar jerry wham
Browse files

Menu bug fixed

parent 5dd78873
......@@ -39,8 +39,8 @@ if (isset($_GET['edit']) && is_file(MS5E_SLIDES_PATH.'content'.DS.$_GET['edit'].
$content = file_get_contents(MS5E_SLIDES_PATH.'content'.DS.$_GET['edit'].'.txt');
$content = trim(str_replace(
array(
'<div class="slide"> <!-- slide -->',
'<div class="notes"> <!-- notes -->',
'<!-- slide --><div class="slide">',
'<!-- notes --><div class="notes">',
'</div> <!-- /notes -->'
),
array(
......@@ -51,7 +51,7 @@ if (isset($_GET['edit']) && is_file(MS5E_SLIDES_PATH.'content'.DS.$_GET['edit'].
$slide_number = $_GET['edit'];
$slide_content = trim(mb_substr($content,11,mb_strpos($content,'START_NOTES',0,'UTF-8')-11,'UTF-8'));
$notes_content = trim(mb_substr($content,mb_strpos($content,'START_NOTES',0,'UTF-8')+11,null,'UTF-8'));
$notes_content = trim(mb_substr($notes_content,0,mb_strpos($notes_content,'END_NOTES',0,'UTF-8')-9,'UTF-8'));
$notes_content = trim(mb_substr($notes_content,0,mb_strpos($notes_content,'END_NOTES',0,'UTF-8'),'UTF-8'));
}
//Preview
if(isset($_GET['preview'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment