Permalink
Browse files

Fixed static config in BBCodeParser (fixes #8340)

  • Loading branch information...
chillu committed Mar 26, 2013
1 parent 880702f commit 04c3b5ee949529402d168efe183a7de1402c324f
Showing with 6 additions and 6 deletions.
  1. +6 −6 parsers/BBCodeParser.php
View
@@ -43,47 +43,47 @@ public static function smilies_location() {
if(!BBCodeParser::$smilies_location) {
return FRAMEWORK_DIR . '/images/smilies';
}
- return $this->config()->smilies_location;
+ return static::config()->smilies_location;
}
/**
* @deprecated 3.2 Use the "BBCodeParser.smilies_location" config setting instead
*/
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;
}
/**
* @deprecated 3.2 Use the "BBCodeParser.autolink_urls" config setting instead
*/
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;
}
/**
* @deprecated 3.2 Use the "BBCodeParser.autolink_urls" config setting instead
*/
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;
}
/**
* @deprecated 3.2 Use the "BBCodeParser.allow_smilies" config setting instead
*/
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;
}
/**
* @deprecated 3.2 Use the "BBCodeParser.allow_smilies" config setting instead
*/
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;
}

0 comments on commit 04c3b5e

Please sign in to comment.