Closed BSteelooper closed 9 years ago
I think I found the issue on line 92 of edit_page.php Can someone verify?
Original:
<input name="seo_name" id="seo_name" type="text" value="<?php if (isset($_GET['page'])) echo $_GET['page']; ?>" />
When I changed to this it was solved:
<input name="seo_name" id="seo_name" type="text" value="<?php if (isset($_GET['page'])) if (isset($seoname)) echo $seoname; else echo $title; ?>" />
I added $seoname in the save_page function on line 655:
$data = '<?php'."\n"
.'$title = \''.sanitize($title).'\';'."\n"
.'$seoname = \''.sanitize($seo_title).'\';'."\n"
.'$content = \''.sanitize($content, false).'\';'."\n"
.'$hidden = \''.$hidden.'\';';
I found the same problem, used this solution as well and it works ok now. Thanks
When you edit a file which is a subpage of an other page you will experience the following:
Page welcome has a subpage about. (At create on disk) 1.welcome.php welcome\1.about.php
After the first edit: 1.welcome.php welcome\1.welcomeabout.php
after the second edit: 1.welcome.php welcome\1.welcomewelcomeabout.php
I saw that there was a modification to the save_page function in functions.admin.php but I don't see the problem :(