# Escape HTML id attributes
if ( $attribute === 'id' ) {
- $value = self::escapeIdForAttribute( $value, Sanitizer::ID_PRIMARY );
+ $value = self::escapeIdForAttribute( $value, self::ID_PRIMARY );
}
# Escape HTML id reference lists
* @return string
*/
private static function escapeIdInternal( $id, $mode ) {
- $id = Sanitizer::decodeCharReferences( $id );
+ $id = self::decodeCharReferences( $id );
switch ( $mode ) {
case 'html5':
$params = [ 'src' => $path, 'headers' => $headers, 'options' => $optHeaders ];
// T172851: HHVM does not flush the output properly, causing OOM
- ob_start( NULL, 1048576 );
+ ob_start( null, 1048576 );
ob_implicit_flush( true );
$status = $this->newGood();
'wgShortPagesNamespaceBlacklist' => $blacklistNS,
'wgContentNamespaces' => $contentNS
] );
- $this->setTemporaryHook( 'ShortPagesQuery', function() {
+ $this->setTemporaryHook( 'ShortPagesQuery', function () {
// empty hook handler
} );