File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,9 @@ public function currentFile()
100100 */
101101 public function testMailForm ()
102102 {
103- $ security = Typecho_Widget::widget ('Widget_Security ' );
104-
105103 /** 构建表单 */
106- $ form = new Typecho_Widget_Helper_Form ($ security ->getIndex ('/action/ ' . CommentToMail_Plugin::$ action ),
104+ $ options = Typecho_Widget::widget ('Widget_Options ' );
105+ $ form = new Typecho_Widget_Helper_Form (Typecho_Common::url ('/action/ ' . CommentToMail_Plugin::$ action , $ options ->index ),
107106 Typecho_Widget_Helper_Form::POST_METHOD );
108107
109108 /** 收件人名称 */
Original file line number Diff line number Diff line change 3434 ?>
3535 <div class="typecho-edit-theme">
3636 <div class="col-mb-12 col-tb-8 col-9 content">
37- <form method="post" name="theme" id="theme" action="<?php $ security ->index ('/action/ ' . CommentToMail_Plugin::$ action ); ?> ">
37+ <form method="post" name="theme" id="theme" action="<?php $ options ->index ('/action/ ' . CommentToMail_Plugin::$ action ); ?> ">
3838 <label for="content" class="sr-only"><?php _e ('编辑源码 ' ); ?> </label>
3939 <textarea name="content" id="content" class="w-100 mono" <?php if (!$ files ->currentIsWriteable ()): ?> readonly<?php endif ; ?> ><?php echo $ files ->currentContent (); ?> </textarea>
4040 <p class="submit">
You can’t perform that action at this time.
0 commit comments