enterprisemediawiki / Wiretap

User pageview tracking for MediaWiki
4 stars 6 forks source link

REL1_34 compatibility #26

Closed freephile closed 4 years ago

freephile commented 4 years ago

Replace DB_SLAVE with DB_REPLICA since the former constant has been removed.

I should have added backward compatibility with MediaWiki < 1.28 with this in the execute method:

    // Backward compatibility for MW < 1.28.
    if ( !defined( 'DB_REPLICA' ) ) {
        define( 'DB_REPLICA', DB_SLAVE );
    }
jamesmontalvo3 commented 4 years ago

Everything below 1.31 is considered obsolete. I'm good without the backward compatibility.