Skip to content

Commit

Permalink
Make the signature the same as their parents
Browse files Browse the repository at this point in the history
Fix database update and the field.link_preview params needed to fit the parent
  • Loading branch information
ChoboHub authored and nitriques committed Jan 10, 2017
1 parent f7320b2 commit baf6bda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function install() {
/**
* Creates the table needed for the settings of the field
*/
public function update($previousVersion) {
public function update($previousVersion = false) {

$ret = true;

Expand Down
6 changes: 3 additions & 3 deletions fields/field.link_preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function entryDataCleanup($entry_id, $data=NULL){
* @param $wrapper
* @param $data
*/
public function appendFormattedElement(&$wrapper, $data) {
public function appendFormattedElement(XMLElement &$wrapper, $data, $encode = false, $mode = NULL, $entry_id = NULL) {
// NOTHING
}

Expand All @@ -192,7 +192,7 @@ public function appendFormattedElement(&$wrapper, $data) {
* @param string $fieldnamePrefix
* @param string $fieldnamePostfix
*/
public function displayPublishPanel(&$wrapper, $data=NULL, $flagWithError=NULL, $fieldnamePrefix=NULL, $fieldnamePostfix=NULL, $entry_id = null) {
public function displayPublishPanel(XMLElement &$wrapper, $data = NULL, $flagWithError = NULL, $fieldnamePrefix = NULL, $fieldnamePostfix = NULL, $entry_id = NULL) {
$sectionId = $this->get('parent_section');
$format = $this->get('format');
$url = $this->applyFormat($entry_id, $format, $sectionId);
Expand Down Expand Up @@ -356,7 +356,7 @@ public static function getFieldValue($field, $fieldValues, $qualifier) {
* @param XMLElement $wrapper
* @param array $errors
*/
public function displaySettingsPanel(&$wrapper, $errors=NULL){
public function displaySettingsPanel(XMLElement &$wrapper, $errors=NULL){
/* first line, label and such */
parent::displaySettingsPanel($wrapper, $errors);

Expand Down

0 comments on commit baf6bda

Please sign in to comment.