More possible matches now.
This commit is contained in:
parent
106fefc6bf
commit
1f0799c986
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue