fix rebuild database form

This commit is contained in:
John Bintz 2009-07-01 21:08:53 -04:00
parent c54de66315
commit 99ab15273a
2 changed files with 3 additions and 2 deletions

View File

@ -183,7 +183,8 @@ class ViewMainTest extends PHPUnit_Framework_TestCase {
'//tt[contains(text(), "the_project_wonderful_ad(123)")]' => true,
'//tt[contains(text(), "PW(123)")]' => true,
'//tt[contains(text(), "PW\(123\)")]' => true,
'//form[@id="allow-destroy-handler"]/input[@name="_pw_nonce" and @value="345"]' => true
'//form[@id="allow-destroy-handler"]/input[@name="_pw_nonce" and @value="345"]' => true,
'//form[@id="allow-destroy-handler"]/input[@name="_pw_action" and @value="rebuild-database"]' => true
) as $xpath => $value) {
$this->assertTrue(_xpath_test($xml, $xpath, $value), $xpath);
}

View File

@ -37,7 +37,7 @@
<form id="allow-destroy-handler" action="" method="post">
<input type="hidden" name="_pw_nonce" value="<?php echo $this->_pw_nonce ?>" />
<input type="hidden" name="action" value="rebuild-database" />
<input type="hidden" name="_pw_action" value="rebuild-database" />
<input type="submit" value="<?php _e('Destroy and Rebuild Database', 'plugin-wonderful') ?>" class="button" />
</form>
<?php } ?>