*/
$wgExiv2Command = '/usr/bin/exiv2';
-
/**
* Path to exiftool binary. Used for lossless ICC profile swapping.
*
* @{
*/
-
/**
* Site admin email address.
*
),
);
-
/**
* For compatibility with old installations set to false
* @deprecated since 1.24 will be removed in future
return $value;
}
-
/**
* Pick apart some CSS and check it for forbidden or unsafe structures.
* Returns a sanitized string. This sanitized string will have
require_once "$IP/includes/compat/normal/UtfNormalUtil.php";
-
$ps_validation = Profiler::instance()->scopedProfileIn( $fname . '-validation' );
// T48998: Bail out early if $wgArticlePath is non-absolute
Profiler::instance()->scopedProfileOut( $ps_extensions );
Profiler::instance()->scopedProfileOut( $ps_setup );
-
. 'for help on how to disable magic quotes.' );
}
-
# bug 15461: Make IE8 turn off content sniffing. Everybody else should ignore this
# We're adding it here so that it's *always* set, even for alternate entry
# points and when $wgOut gets disabled or overridden.
require "$IP/StartProfiler.php";
}
-
# Load default settings
require_once "$IP/includes/DefaultSettings.php";
require_once MW_CONFIG_FILE;
}
-
# Initialise output buffering
# Check that there is no previous output or previously set up buffers, because
# that would cause us to potentially mix gzip and non-gzip output, creating a
}
}
-
/************************************************************************//**
* @name Methods to implement
* @{
private $errorFallback;
private $mFailWithHTTPError = false;
-
/**
* @param ApiMain $main
* @param ApiFormatBase|null $errorFallback Object to fall back on for errors
return $unserializedParams;
}
}
-
* @ingroup UtfNormal
*/
-
use UtfNormal\Utils;
/**
return $this->getContext()->getStats();
}
-
/**
* Get a Message object with context set
* Parameters are the same as wfMessage()
LogLevel::EMERGENCY => 600,
);
-
/**
* @param string $channel
*/
MWDebug::debugMsg( $message, array( 'channel' => $this->channel ) + $context );
}
-
/**
* Determine if the given message should be emitted or not.
*
return $shouldEmit;
}
-
/**
* Format a message.
*
return self::interpolate( $text, $context );
}
-
/**
* Format a message as `wfDebug()` would have formatted it.
*
return "{$text}\n";
}
-
/**
* Format a message as `wfLogDBError()` would have formatted it.
*
return $text;
}
-
/**
* Format a message as `wfDebugLog() would have formatted it.
*
return $text;
}
-
/**
* Interpolate placeholders in logging message.
*
return $message;
}
-
/**
* Convert a logging context element to a string suitable for
* interpolation.
return '[Unknown ' . gettype( $item ) . ']';
}
-
/**
* Select the appropriate log output destination for the given log event.
*
return $destination;
}
-
/**
* Log to a file without getting "file size exceeded" signals.
*
*/
protected $singletons = array();
-
/**
* Get a logger instance.
*
*/
private static $spi;
-
/**
* Register a service provider to create new \Psr\Log\LoggerInterface
* instances.
self::$spi = $provider;
}
-
/**
* Get the registered service provider.
*
return self::$spi;
}
-
/**
* Get a named logger instance from the currently configured logger factory.
*
return self::getProvider()->getLogger( $channel );
}
-
/**
* Construction of utility class is not allowed.
*/
*/
protected $config;
-
/**
* @param array $config Configuration data.
*/
$this->mergeConfig( $config );
}
-
/**
* Merge additional configuration data into the configuration.
*
$this->reset();
}
-
/**
* Reset internal caches.
*
);
}
-
/**
* Get a logger instance.
*
return $this->singletons['loggers'][$channel];
}
-
/**
* Create a logger.
* @param string $channel Logger channel
return $obj;
}
-
/**
* Create or return cached processor.
* @param string $name Processor name
return $this->singletons['processors'][$name];
}
-
/**
* Create or return cached handler.
* @param string $name Processor name
return $this->singletons['handlers'][$name];
}
-
/**
* Create or return cached formatter.
* @param string $name Formatter name
*/
protected $singleton;
-
public function __construct() {
$this->singleton = new NullLogger();
}
-
/**
* Get a logger instance.
*
return null;
}
-
/**
* convert an integer to a 64bits big endian long (Java compatible)
* NOTE: certainly only compatible with PHP 64bits
*/
protected $prefix;
-
/**
* @param string $stream Stream URI
* @param bool $useLegacyFilter Filter log events using legacy rules
}
}
-
/**
* Custom error handler.
* @param int $code Error number
$this->error = $msg;
}
-
/**
* Should we use UDP to send messages to the sink?
* @return bool
return $this->host !== null;
}
-
protected function write( array $record ) {
if ( $this->useLegacyFilter &&
!LegacyLogger::shouldEmit(
}
}
-
public function close() {
if ( is_resource( $this->sink ) ) {
if ( $this->useUdp() ) {
$this->includeStacktraces( $includeStacktraces );
}
-
/**
* {@inheritdoc}
*/
return $output;
}
-
/**
* Convert an Exception to a string.
*
return $this->normalizeExceptionArray( $this->exceptionAsArray( $e ) );
}
-
/**
* Convert an exception to an array of structured data.
*
return $out;
}
-
/**
* Convert an array of Exception data to a string.
*
*/
private $hostname;
-
/**
* @param string $appname Application name to report to syslog
* @param string $host Syslog host
return false;
}
-
/**
* Dual purpose callback used as both a set_error_handler() callback and
* a registered shutdown function. Receive a callback from the interpreter
public function callParserFunction( $frame, $function, array $args = array() ) {
global $wgContLang;
-
# Case sensitive functions
if ( isset( $this->mFunctionSynonyms[1][$function] ) ) {
$function = $this->mFunctionSynonyms[1][$function];
return $node;
}
-
/**
* Preprocess some wikitext and return the document tree.
* This is the ghost of Parser::replace_variables().
}
}
-
/**
* Get registration code for all modules.
*
return $out;
}
-
/**
* Cache page content model for performance
*
}
}
-
/**
* @param Skin $skin
* @param object $result Result row
/** @var Title */
protected $newTitle;
-
/** @var string Text input */
protected $reason;
return $this->getPasswordValidity( $password ) === true;
}
-
/**
* Given unvalidated password input, return error message on failure.
*
'whirlpool' => 64,
);
-
/**
* @param string $secretKeyMaterial
* @param string $algorithm Name of hashing algorithm
);
}
-
/**
* RFC5869 defines HKDF in 2 steps, extraction and expansion.
* From http://eprint.iacr.org/2010/264.pdf:
"mw-widgets-titleinput-description-redirect": "redirect to $1",
"api-error-blacklisted": "Please choose a different, descriptive title."
}
-
-
require __DIR__ . '/includes/WebStart.php';
-
// URL safety checks
if ( !$wgRequest->checkUrlExtension() ) {
return;
return sprintf( "\\x%02x", ord( $matches[1] ) );
}
}
-
$maintClass = 'CommandLineInc';
require RUN_MAINTENANCE_IF_MAIN;
-
}
}
-
/**
* Maintenance task that recursively scans MediaWiki PHP files for deprecated
* functions and interfaces and produces a report.
// Write out the autoload
$generator->generateAutoload( 'maintenance/generateLocalAutoload.php' );
-
return html_entity_decode( $matches[1] );
}
-
parent::__construct();
}
-
/**
* Do the import.
*/
$maintClass = "PageExists";
require_once RUN_MAINTENANCE_IF_MAIN;
-
PRIMARY KEY (bo_cluster, bo_blob_id)
) /*$wgDBTableOptions*/;
-
}
},
-
fixTitle: function() {
var $e = this.$element;
if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
/* @embed */
background: url(images/marker.png) no-repeat;
}
-
#shared-image-conflict {
font-style: italic;
}
-
background-size: @width @height;
}
-
.vertical-gradient(@startColor: gray, @endColor: white, @startPos: 0, @endPos: 100%) {
background-color: @endColor;
background-image: -moz-linear-gradient( top, @startColor @startPos, @endColor @endPos ); // Firefox 3.6+
// Global border radius to be used to buttons and inputs
@borderRadius: 2px;
-
// Icon related variables
@iconSize: 1.5em;
@iconGutterWidth: 1em;
.client-js #preferences #mw-prefsection-personal {
display: block;
}
-
width: auto;
}
-
// Styles for information boxes
//
// Regular HTMLForm uses .error class, some special pages like
content: '';
}
-
// Icons with text
//
// Markup:
}
}
-
public function testBatchHandlesNullFormatterResult() {
$produce = $this->getMockBuilder( 'Kafka\Produce' )
->disableOriginalConstructor()
}
}
-
/**
* PHP Unit tests for MemoizedCallable class.
* @covers MemoizedCallable
);
}
-
/**
* @dataProvider provideProtectLogDatabaseRows
*/
);
}
-
/**
* @dataProvider provideModifyLogDatabaseRows
*/
);
}
-
/**
* @dataProvider provideUnprotectLogDatabaseRows
*/
/** @var string */
protected $filePath;
-
protected function setUp() {
parent::setUp();
$this->handler = new XCFHandler();
}
-
/**
* @param string $filename
* @param int $expectedWidth Width
}
}
-
public static function provideExtractMessagesDirs() {
$dir = __DIR__ . '/FooBar/';
return array(
}
}
-
/**
* Allow overriding the default value of $this->globals
* so we can test merging
);
}
-
/**
* @dataProvider provideCheckSvgScriptCallback
*/
return call_user_func_array( array( $this, 'onConsecutiveCalls' ), $retvals );
}
-
protected function genSelectResult( $batchSize, $numRows, $rowGenerator ) {
$res = array();
for ( $i = 0; $i < $numRows; $i += $batchSize ) {
);
// @codingStandardsIgnoreEnd
}
-
-
}
} );
}
-
$ok = false;
if ( class_exists( 'PHPUnit_TextUI_Command' ) ) {
return null;
}
-
/**
* Output a thumbnail generation error message
*