This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors','On'); | |
function checkLang($lang) { | |
$s1 = unserialize(file_get_contents('./dump_dev/messageCache.dump.' . $lang . '.php')); | |
$s2 = unserialize(file_get_contents('./dump_374/messageCache.dump.' . $lang . '.php')); | |
$k1 = array_keys($s1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once( dirname( __FILE__ ) . '/commandLine.inc' ); | |
error_reporting( E_ALL ); | |
ini_set( 'display_errors', 'On' ); | |
foreach ( Language::getLanguageNames() as $languageCode => $languageName ) { | |
$lang = Language::factory( $languageCode ); | |
$mc = $lang->getLocalisationCache(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(dirname( __FILE__ ) . '../../../Maintenance.php'); | |
class PromoteChecks extends Maintenance { | |
/** | |
* Set script options | |
*/ | |
public function __construct() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(dirname( __FILE__ ) . '../../../Maintenance.php'); | |
class PromoteUserChecks extends Maintenance { | |
/** | |
* Set script options | |
*/ | |
public function __construct() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function rssFeed() { | |
global $wgDatamartDB; | |
$wikiId = $this->getVal( 'wikiId' ); | |
$wikis = [$wikiId]; | |
$rec_list = []; | |
foreach ($wikis as $community) { | |
$pages = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window, document, $nirvana) { | |
// Disable loading spotlights from OpenX | |
window.wgEnableOpenXSPC = false; | |
$nirvana.sendRequest({ | |
controller: 'SpotlightsABTest', | |
method: 'getSpotlights', | |
type: 'post', | |
format: 'json', | |
data: { |