Skip to content

Commit

Permalink
Merge pull request #79 from michael-e/integration
Browse files Browse the repository at this point in the history
Use new `Widget::Error` function and `InitialiseAdminPageHead` delegate
  • Loading branch information
brendo committed Jan 4, 2016
2 parents f8e126d + 7c1e746 commit 223eca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function getSubscribedDelegates(){
return array(
array(
'page' => '/backend/',
'delegate' => 'InitaliseAdminPageHead',
'delegate' => 'InitialiseAdminPageHead',
'callback' => 'prepareIndex'
),
array(
Expand Down
2 changes: 1 addition & 1 deletion fields/field.order_entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function displayPublishPanel(&$wrapper, $data = null, $flagWithError = null, $fi
if($this->get('required') != 'yes') $label->appendChild(new XMLElement('i', __('Optional')));
$label->appendChild($input);
if($flagWithError != null) {
$wrapper->appendChild(Widget::wrapFormElementWithError($label, $flagWithError));
$wrapper->appendChild(Widget::Error($label, $flagWithError));
}
else {
$wrapper->appendChild($label);
Expand Down

0 comments on commit 223eca3

Please sign in to comment.