diff options
Diffstat (limited to 'lib/core-extensions/Google-Groups/extension.php')
| -rw-r--r-- | lib/core-extensions/Google-Groups/extension.php | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/core-extensions/Google-Groups/extension.php b/lib/core-extensions/Google-Groups/extension.php deleted file mode 100644 index eb30de5f9..000000000 --- a/lib/core-extensions/Google-Groups/extension.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php -class GoogleGroupsExtension extends Minz_Extension { - /** @return void */ - public function init() { - $this->registerHook('check_url_before_add', array('GoogleGroupsExtension', 'findFeed')); - } - - public static function findFeed(string $url): string { - return preg_replace('%^(https?://groups.google.com/forum)/#!forum/(.+)$%i', '$1/feed/$2/msgs/rss.xml', $url) ?? ''; - } -} |
