Skip to content

Commit

Permalink
Update discourse.php
Browse files Browse the repository at this point in the history
Fix PHP Deprecated message (Use of "self" in callables is deprecated)
  • Loading branch information
ssovit authored Dec 21, 2023
1 parent 8b1a7d6 commit 6a80d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/discourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function initialize_plugin() {
$saved_values = get_option( 'discourse_configurable_text' );
$default_values = $this->discourse_configurable_text;
$merged_values = array_merge( $default_values, $saved_values );
array_walk( $merged_values, 'self::register_text_translations' );
array_walk( $merged_values, self::class . '::register_text_translations' );
update_option( $group_name, $merged_values );
} else {
add_option( $group_name, $this->$group_name );
Expand Down

0 comments on commit 6a80d05

Please sign in to comment.