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

--- Comment #5 from Sam Reed (reedy) <s...@reedyboy.net> ---
So I don't have to dig it out again. Basic pattern for adding this information
is

$wgHooks['APIGetDescription'][] = function ( &$module, &$desc ) {
        if ( !$module instanceof ApiMain ) {
                return true;
        }

        $desc[] = 'Terms: By using the API, you agree to the Terms of Use, and
you irrevocably agree to release modifications made through the API under the
CC-BY-SA 3.0 License and the GFDL.';

        // Append some more whitespace for ApiMain
        for ( $i = 0; $i < 3; $i++ ) {
                $desc[] = '';
        }

        return true;
}

-- 
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