More possible matches now.

This commit is contained in:
Ralph Bean 2015-04-30 01:18:42 +00:00
parent 106fefc6bf
commit 1f0799c986

View file

@ -355,7 +355,7 @@ class FedoraTemplate extends QuickTemplate {
$subject = $skin->getTitle()->getInternalURL();
$pattern = '/User:([a-zA-Z0-9]+)(\/.*)?$/';
preg_match($pattern, $subject, $matches);
if (sizeof($matches) == 2):
if (sizeof($matches) >= 2):
echo "'user': '" . strtolower($matches[1]) . "',";
endif;
?>