3 define( 'MEDIAWIKI', 1 );
4 define( 'NOT_REALLY_MEDIAWIKI', 1 );
7 foreach ( glob( 'Language*.php' ) as $file ) {
8 if ( $file != 'Language.php' ) {
13 $removedFunctions = array( 'date', 'time', 'timeanddate', 'formatMonth', 'formatDay',
14 'getMonthName', 'getMonthNameGen', 'getMonthAbbreviation', 'getWeekdayName',
15 'userAdjust', 'dateFormat', 'timeSeparator', 'timeDateSeparator', 'timeBeforeDate',
16 'monthByLatinNumber', 'getSpecialMonthName',
23 $classes = get_declared_classes();
25 foreach ( $classes as $class ) {
26 if ( !preg_match( '/^Language/', $class ) ||
$class == 'Language' ||
$class == 'LanguageConverter' ) {
31 $methods = get_class_methods( $class );
34 if ( !count( array_diff( $methods, $removedFunctions ) ) ) {
42 print "$numRemoved will be removed out of $total\n";