Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 28, 2014
1 parent 4126655 commit eea9e81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Bridges/FormsLatte/FormMacros.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public static function renderFormBegin(Form $form, array $attrs, $withTags = TRU
$control->setOption('rendered', FALSE);
}
$el = $form->getElementPrototype();
$el->action = $action = (string) $el->action;
$el->action = (string) $el->action;
$el = clone $el;
if (strcasecmp($form->getMethod(), 'get') === 0) {
$el->action = preg_replace('~\?[^#]*~', '', $el->action, 1);
Expand Down
1 change: 0 additions & 1 deletion src/Forms/Rendering/DefaultFormRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public function render(Nette\Forms\Form $form, $mode = NULL)
*/
protected function init()
{
// TODO: only for back compatiblity - remove?
$wrapper = & $this->wrappers['control'];
foreach ($this->form->getControls() as $control) {
if ($control->isRequired() && isset($wrapper['.required'])) {
Expand Down

0 comments on commit eea9e81

Please sign in to comment.