Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed static config in BBCodeParser (fixes #8340)

  • Loading branch information...
commit 04c3b5ee949529402d168efe183a7de1402c324f 1 parent 880702f
@chillu chillu authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 parsers/BBCodeParser.php
View
12 parsers/BBCodeParser.php
@@ -43,7 +43,7 @@ public static function smilies_location() {
if(!BBCodeParser::$smilies_location) {
return FRAMEWORK_DIR . '/images/smilies';
}
- return $this->config()->smilies_location;
+ return static::config()->smilies_location;
}
/**
@@ -51,7 +51,7 @@ public static function smilies_location() {
*/
public static function set_icon_folder($path) {
Deprecation::notice('3.2', 'Use the "BBCodeParser.smilies_location" config setting instead');
- $this->config()->smilies_location = $path;
+ static::config()->smilies_location = $path;
}
/**
@@ -59,7 +59,7 @@ public static function set_icon_folder($path) {
*/
public static function autolinkUrls() {
Deprecation::notice('3.2', 'Use the "BBCodeParser.autolink_urls" config setting instead');
- return $this->config()->autolink_urls;
+ return static::config()->autolink_urls;
}
/**
@@ -67,7 +67,7 @@ public static function autolinkUrls() {
*/
public static function disable_autolink_urls($autolink = false) {
Deprecation::notice('3.2', 'Use the "BBCodeParser.autolink_urls" config setting instead');
- $this->config()->autolink_urls = $autolink;
+ static::config()->autolink_urls = $autolink;
}
/**
@@ -75,7 +75,7 @@ public static function disable_autolink_urls($autolink = false) {
*/
public static function smiliesAllowed() {
Deprecation::notice('3.2', 'Use the "BBCodeParser.allow_smilies" config setting instead');
- return $this->config()->allow_smilies;
+ return static::config()->allow_smilies;
}
/**
@@ -83,7 +83,7 @@ public static function smiliesAllowed() {
*/
public static function enable_smilies() {
Deprecation::notice('3.2', 'Use the "BBCodeParser.allow_smilies" config setting instead');
- $this->config()->allow_similies = true;
+ static::config()->allow_similies = true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.