Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5949853
RTTestSettings.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
RTTestSettings.php
View Options
<?php
// This file is loaded from wmf-config's CommonSettings.php
$wgReadOnly
=
"parsoidtest1001 access is read-only for Parsoid testing. "
.
"You shouldn't need to write anything from here."
;
// EVIL(ish) hack:
// Override autoloader to ensure all of Parsoid is running from the
// same place as this file (since there will also be another copy of
// Parsoid included from the vendor/wikimedia/parsoid directory)
AutoLoader
::
registerNamespaces
(
[
// Keep this in sync with the "autoload" clause in /composer.json!
'Wikimedia
\\
Parsoid
\\
'
=>
__DIR__
.
"/../src"
]
);
// When Parsoid is enabled in production context, this will
// have already been configured.
if
(
!
isset
(
$wgParsoidSettings
)
)
{
// Temporarily enable all these defaults
$wgParsoidSettings
=
[];
}
// Override Parsoid-specific settings for rt-testing.
$wgParsoidSettings
[
'useSelser'
]
=
true
;
// Linting during rt testing is useful to catch errors and crashers,
// but we don't want to save lints to the production db.
$wgParsoidSettings
[
'linting'
]
=
(
bool
)
$wgReadOnly
;
$wgParsoidSettings
[
'metricsPrefix'
]
=
'Parsoid-Tests.'
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 2 2026, 23:27 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
28/91/aaa8007c1adf57077cbf4e8f3e64
Default Alt Text
RTTestSettings.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment