Skip to content

Commit

Permalink
Fixed displayPublishPanel signature
Browse files Browse the repository at this point in the history
This makes the parameters names exactly like the core ones and adds the
$entry_id parameter.

Fixes #10
  • Loading branch information
nitriques committed Dec 6, 2015
1 parent 9f18b4f commit 2947b45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fields/field.systemcreateddate.php
Expand Up @@ -49,7 +49,7 @@ public function displaySettingsPanel(&$wrapper, $errors = null) {
Input:
-------------------------------------------------------------------------*/

public function displayPublishPanel(&$wrapper, $data = null, $error = null, $prefix = null, $postfix = null) {
public function displayPublishPanel(XMLElement &$wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null)
// Append assets
if(class_exists('Administration')) {
Administration::instance()->Page->addStylesheetToHead(URL . '/extensions/system_date_fields/assets/system_date_fields.publish.css', 'screen', 104, false);
Expand Down
2 changes: 1 addition & 1 deletion fields/field.systemmodifieddate.php
Expand Up @@ -49,7 +49,7 @@ public function displaySettingsPanel(&$wrapper, $errors = null) {
Input:
-------------------------------------------------------------------------*/

public function displayPublishPanel(&$wrapper, $data = null, $error = null, $prefix = null, $postfix = null) {
public function displayPublishPanel(XMLElement &$wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null)
// Append assets
if(class_exists('Administration')) {
Administration::instance()->Page->addStylesheetToHead(URL . '/extensions/system_date_fields/assets/system_date_fields.publish.css', 'screen', 104, false);
Expand Down

0 comments on commit 2947b45

Please sign in to comment.