Skip to content

Commit

Permalink
Fixed namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardog committed Feb 9, 2017
1 parent 20ea545 commit ca6a03b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-phpws-legacy/src/DBPager.php
Expand Up @@ -1326,7 +1326,7 @@ public function getSearchBox()
unset($values['go']);


$form = new \Form($id);
$form = new \phpws2\Form($id);
$form->useGetMethod();
$form->addClass('form-inline');
$form->setAction('index.php');
Expand Down
2 changes: 1 addition & 1 deletion src-phpws2/src/Form.php
Expand Up @@ -161,7 +161,7 @@ public function addInput($type, $name, $value = null, $label = null)
throw new \Exception(sprintf('Improperly formatted input name: %s', $name));
}

$class_name = 'Form\Input\\' . ucfirst(strtolower($type));
$class_name = '\phpws2\Form\Input\\' . ucfirst(strtolower($type));
$input = new $class_name($name, $value);
if (isset($label)) {
$input->setLabel($label);
Expand Down

0 comments on commit ca6a03b

Please sign in to comment.