From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- includes/LinkFilter.php | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'includes/LinkFilter.php') diff --git a/includes/LinkFilter.php b/includes/LinkFilter.php index 53841df1..af7680fb 100644 --- a/includes/LinkFilter.php +++ b/includes/LinkFilter.php @@ -41,42 +41,6 @@ class LinkFilter { return $regex; } - /** - * 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: -- cgit v1.2.2