(fedmenu/wiki) One last try.
This commit is contained in:
parent
a02c0b8012
commit
106fefc6bf
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ class FedoraTemplate extends QuickTemplate {
|
|||
'position': 'bottom-right',
|
||||
<?php
|
||||
$subject = $skin->getTitle()->getInternalURL();
|
||||
$pattern = '/User:([a-zA-Z0-9]+)/';
|
||||
$pattern = '/User:([a-zA-Z0-9]+)(\/.*)?$/';
|
||||
preg_match($pattern, $subject, $matches);
|
||||
if (sizeof($matches) == 2):
|
||||
echo "'user': '" . strtolower($matches[1]) . "',";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue