Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleanup

  • Loading branch information...
commit 2bc6ca0fda53796eae6bb547d3e04341fe913beb 1 parent 48e541a
@Kroc authored
Showing with 11 additions and 22 deletions.
  1. +11 −22 thread.php
View
33 thread.php
@@ -158,14 +158,10 @@
//the append form:
))->set (array (
//set the field values from what was typed in before
- 'input#nnf_name-field-http@value' => NAME,
- 'input#nnf_name-field@value' => NAME,
- 'input#nnf_pass-field@value' => PASS,
- 'textarea#nnf_text-field' => TEXT,
- //set the maximum field sizes
- 'input#nnf_name-field@maxlength' => SIZE_NAME,
- 'input#nnf_pass-field@maxlength' => SIZE_PASS,
- 'textarea#nnf_text-field@maxlength' => SIZE_TEXT
+ 'input#nnf_name-field-http@value' => NAME, //set the maximum field sizes
+ 'input#nnf_name-field@value' => NAME, 'input#nnf_name-field@maxlength' => SIZE_NAME,
+ 'input#nnf_pass-field@value' => PASS, 'input#nnf_pass-field@maxlength' => SIZE_PASS,
+ 'textarea#nnf_text-field' => TEXT, 'textarea#nnf_text-field@maxlength' => SIZE_TEXT
//is the user already signed-in?
))->remove (HTTP_AUTH
@@ -307,12 +303,9 @@
//the authentication form:
))->set (array (
- //set the field values from what was typed in before
- 'input#nnf_name-field@value' => NAME,
- 'input#nnf_pass-field@value' => PASS,
- //set the maximum field sizes
- 'input#nnf_name-field@maxlength' => SIZE_NAME,
- 'input#nnf_pass-field@maxlength' => SIZE_PASS
+ //set the field values from input //set the maximum field sizes
+ 'input#nnf_name-field@value' => NAME, 'input#nnf_name-field@maxlength' => SIZE_NAME,
+ 'input#nnf_pass-field@value' => PASS, 'input#nnf_pass-field@maxlength' => SIZE_PASS
//are we deleting the whole thread, or just one reply?
))->remove ($ID
@@ -554,14 +547,10 @@
---------------------------------------------------------------------------------------------------------------------- */
if (CAN_REPLY) $template->set (array (
//set the field values from what was typed in before
- 'input#nnf_name-field-http@value' => NAME,
- 'input#nnf_name-field@value' => NAME,
- 'input#nnf_pass-field@value' => PASS,
- 'textarea#nnf_text-field' => TEXT,
- //set the maximum field sizes
- 'input#nnf_name-field@maxlength' => SIZE_NAME,
- 'input#nnf_pass-field@maxlength' => SIZE_PASS,
- 'textarea#nnf_text-field@maxlength' => SIZE_TEXT
+ 'input#nnf_name-field-http@value' => NAME, //set the maximum field sizes
+ 'input#nnf_name-field@value' => NAME, 'input#nnf_name-field@maxlength' => SIZE_NAME,
+ 'input#nnf_pass-field@value' => PASS, 'input#nnf_pass-field@maxlength' => SIZE_PASS,
+ 'textarea#nnf_text-field' => TEXT, 'textarea#nnf_text-field@maxlength' => SIZE_TEXT
//is the user already signed-in?
))->remove (HTTP_AUTH
Please sign in to comment.
Something went wrong with that request. Please try again.