Browse files

fix include path after moving examples directory

  • Loading branch information...
1 parent 131f1f1 commit 74a5fdf6bbec653001e55db5a835ada7878e7d4d @cweiske cweiske committed May 25, 2010
Showing with 3 additions and 5 deletions.
  1. +2 −4 docs/examples/demo-captcha.php
  2. +1 −1 docs/examples/numeral-captcha.php
View
6 docs/examples/demo-captcha.php
@@ -15,11 +15,10 @@
<body>
<?php
set_include_path(
- '../'
+ '../../'
. ':' . get_include_path()
);
require_once 'HTML/QuickForm2.php';
-require_once 'HTML/QuickForm2/Renderer.php';
require_once 'HTML/QuickForm2/Element/NumeralCaptcha.php';
require_once 'HTML/QuickForm2/Element/ReCaptcha.php';
@@ -72,8 +71,7 @@
}
} else {
echo '<h3>INvalid</h3>';
- $renderer = HTML_QuickForm2_Renderer::factory('default');
- echo $form->render($renderer);
+ echo $form;
}
echo '<pre>Data: ';
var_dump($form->getValue());
View
2 docs/examples/numeral-captcha.php
@@ -28,7 +28,7 @@
<?php
//you do not need this. for development purposes only
set_include_path(
- '../'
+ '../../'
. ':' . get_include_path()
);

0 comments on commit 74a5fdf

Please sign in to comment.