Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting signatures to be compatible with 18.10 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ public static function get_description() {
return get_string('description', 'blocktype.linkedinprofile');
}

public static function get_css_icon() {
public static function get_css_icon($blocktypename) {
return 'linkedin-square';
}

public static function get_categories() {
return array('internal');
}

public static function render_instance(BlockInstance $instance, $editing=false) {
public static function render_instance(BlockInstance $instance, $editing=false, $versioning=false) {
$configdata = $instance->get('configdata');
$type = (isset($configdata['linkedindata']) ? $configdata['linkedindata'] : 'basicprofile');
$owner = $instance->get_view()->get('owner');
Expand All @@ -76,7 +76,7 @@ public static function has_instance_config() {
return true;
}

public static function instance_config_form($instance) {
public static function instance_config_form(BlockInstance $instance) {
global $USER, $THEME;
$configdata = $instance->get('configdata');
$data = get_record('usr_account_preference', 'usr', $USER->get('id'), 'field', 'linkedinprofile');
Expand Down Expand Up @@ -205,7 +205,7 @@ public static function get_config_options() {
);
}

public static function save_config_options($form, $values) {
public static function save_config_options(Pieform $form, $values) {
set_config_plugin('blocktype', 'linkedinprofile', 'apikey', $values['apikey']);
set_config_plugin('blocktype', 'linkedinprofile', 'secretkey', $values['secretkey']);
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
defined('INTERNAL') || die();

$config = new StdClass;
$config->version = 2016122200;
$config->release = '16.12.0';
$config->version = 2019061900;
$config->release = '18.10.0';