https://bugzilla.wikimedia.org/show_bug.cgi?id=27448

Marcin Cieślak <marcin.cies...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcin.cies...@gmail.com

--- Comment #3 from Marcin Cieślak <marcin.cies...@gmail.com> 2011-03-11 
21:48:01 UTC ---
I was thinking maybe we could introduce a function like this:

function wfMatchProto( $path_variable )  
{
    global $wgProto;
    if( is_array( $path_variable ) ) {
        foreach( $path_variable as $value ) {
            if( !strncasecmp( $value, $wgProto, strlen( $wgProto) ) )
                return $value;
        }
    }
    return $path_variable;
}

and then just (backwardly compatible) introduce variables like:

$wgCentralPagePath = array("http://meta.wikimedia.org/w/index.php";,
"https://secure.wikimedia.org/wikipedia/meta/w/index.php";);

Just an idea...

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to