Fix documentation, document return type
This commit is contained in:
parent
9a6639828c
commit
a0fbb287ae
1 changed files with 4 additions and 2 deletions
6
api.php
6
api.php
|
|
@ -68,11 +68,13 @@ if ( !$wgEnableAPI ) {
|
|||
|
||||
// Selectively allow cross-site AJAX
|
||||
|
||||
/*
|
||||
/**
|
||||
* Helper function to convert wildcard string into a regex
|
||||
* '*' => '.*?'
|
||||
* '?' => '.'
|
||||
* @ return string
|
||||
*
|
||||
* @param $search string
|
||||
* @return string
|
||||
*/
|
||||
function convertWildcard( $search ) {
|
||||
$search = preg_quote( $search, '/' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue