Two bug fixes from Josh - elsewhere.org.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-04-21 22:24:08 +00:00
parent dfc9cecfd2
commit 7372630aee
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
require_once('optionhandler.php'); require_once('optionhandler.php');
if ($_POST['Submit'] == 'Update') { if ($_POST['Submit']) {
update_option('permalink_structure', $_POST['permalink_structure']); update_option('permalink_structure', $_POST['permalink_structure']);
$permalink_structure = $_POST['permalink_structure']; $permalink_structure = $_POST['permalink_structure'];
} else { } else {
@ -91,7 +91,7 @@ $site_root = preg_replace('|([^/]*)(.*)|i', '$2', $site_root);
if ('/' != substr($site_root, -1)) $site_root = $site_root . '/'; if ('/' != substr($site_root, -1)) $site_root = $site_root . '/';
?> ?>
<form action""> <form action="">
<p> <p>
<textarea rows="5" style="width: 100%;">RewriteEngine On <textarea rows="5" style="width: 100%;">RewriteEngine On
RewriteBase <?php echo $site_root; ?> RewriteBase <?php echo $site_root; ?>