diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /includes/LinkFilter.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'includes/LinkFilter.php')
-rw-r--r-- | includes/LinkFilter.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/includes/LinkFilter.php b/includes/LinkFilter.php index 53841df1..af7680fb 100644 --- a/includes/LinkFilter.php +++ b/includes/LinkFilter.php @@ -42,42 +42,6 @@ class LinkFilter { } /** - * Make a string to go after an SQL LIKE, which will match the specified - * string. There are several kinds of filter entry: - * *.domain.com - Produces http://com.domain.%, matches domain.com - * and www.domain.com - * domain.com - Produces http://com.domain./%, matches domain.com - * or domain.com/ but not www.domain.com - * *.domain.com/x - Produces http://com.domain.%/x%, matches - * www.domain.com/xy - * domain.com/x - Produces http://com.domain./x%, matches - * domain.com/xy but not www.domain.com/xy - * - * Asterisks in any other location are considered invalid. - * - * @param $filterEntry String: domainparts - * @param $prot String: protocol - * @return String - * @deprecated Use makeLikeArray() and pass result to Database::buildLike() instead - */ - public static function makeLike( $filterEntry , $prot = 'http://' ) { - wfDeprecated( __METHOD__ ); - - $like = self::makeLikeArray( $filterEntry , $prot ); - if ( !$like ) { - return false; - } - $dbw = wfGetDB( DB_MASTER ); - $s = $dbw->buildLike( $like ); - $m = false; - if ( preg_match( "/^ *LIKE '(.*)' *$/", $s, $m ) ) { - return $m[1]; - } else { - throw new MWException( __METHOD__.': this DBMS is not supported by this function.' ); - } - } - - /** * Make an array to be used for calls to DatabaseBase::buildLike(), which * will match the specified string. There are several kinds of filter entry: * *.domain.com - Produces http://com.domain.%, matches domain.com |