(fedmenu/wiki) One last try.

This commit is contained in:
Ralph Bean 2015-04-30 01:16:16 +00:00
parent a02c0b8012
commit 106fefc6bf

View file

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