Permalink
Browse files

moved dependencies and fixed an undefined var warning.

  • Loading branch information...
1 parent 73bce48 commit 7f40c7d5eb234a530e58597ebbc9c3ceb1b10dd9 @CaptainN CaptainN committed Sep 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −1 OnceForm.php
  2. +0 −1 examples/BasicForm.php
  3. +0 −1 examples/DynamicForm.php
View
@@ -1,4 +1,5 @@
<?php
+include 'lib/ganon.php';
include 'validtors.php';
/*
@@ -57,10 +58,11 @@ public function __construct( $form_func = NULL )
{
$this->add_form_func( $form_func );
+ // $this->data is set here
$this->check_request();
if ( $this->isRequest )
- $this->isValid = $this->validate( $data );
+ $this->isValid = $this->validate();
}
}
View
@@ -19,7 +19,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-include '../lib/ganon.php';
include '../OnceForm.php';
$form1 = new OnceForm( 'myForm' );
View
@@ -19,7 +19,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-include '../lib/ganon.php';
include '../OnceForm.php';
$form1 = new OnceForm();

0 comments on commit 7f40c7d

Please sign in to comment.