X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2FCSSMin.php;h=d5055629d87da118dc6cd032680b3e26a1b31c15;hp=ea0f1b7c740d36a5b76ac719568c05da142cbc3d;hb=d1cf48a397edbbe9c6a63d6f83861d676f686d07;hpb=de5e6e666945a8708bb3df48ac309e6d0d691e74 diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index ea0f1b7c74..d5055629d8 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -252,7 +252,7 @@ class CSSMin { // quotation marks (e.g. "foo /* bar"). $comments = []; - $pattern = '/(?!' . CSSMin::EMBED_REGEX . ')(' . CSSMin::COMMENT_REGEX . ')/s'; + $pattern = '/(?!' . self::EMBED_REGEX . ')(' . self::COMMENT_REGEX . ')/s'; $source = preg_replace_callback( $pattern, @@ -355,7 +355,7 @@ class CSSMin { }, $source ); // Re-insert comments - $pattern = '/' . CSSMin::PLACEHOLDER . '(\d+)x/'; + $pattern = '/' . self::PLACEHOLDER . '(\d+)x/'; $source = preg_replace_callback( $pattern, function ( $match ) use ( &$comments ) { return $comments[ $match[1] ]; }, $source );