* @return array
*/
public static function userJoinCond() {
+ wfDeprecated( __METHOD__, '1.31' );
return [ 'LEFT JOIN', [ 'rev_user != 0', 'user_id = rev_user' ] ];
}
* @return array
*/
public static function pageJoinCond() {
+ wfDeprecated( __METHOD__, '1.31' );
return [ 'INNER JOIN', [ 'page_id = rev_page' ] ];
}
public static function selectFields() {
global $wgContentHandlerUseDB;
+ wfDeprecated( __METHOD__, '1.31' );
+
$fields = [
'rev_id',
'rev_page',
*/
public static function selectArchiveFields() {
global $wgContentHandlerUseDB;
+
+ wfDeprecated( __METHOD__, '1.31' );
+
$fields = [
'ar_id',
'ar_page_id',
* @return array
*/
public static function selectTextFields() {
+ wfDeprecated( __METHOD__, '1.31' );
return [
'old_text',
'old_flags'
* @return array
*/
public static function selectPageFields() {
+ wfDeprecated( __METHOD__, '1.31' );
return [
'page_namespace',
'page_title',
* @return array
*/
public static function selectUserFields() {
+ wfDeprecated( __METHOD__, '1.31' );
return [ 'user_name' ];
}
* Get a prefixed label
*
* @param {boolean} inverted This item should be considered inverted
- * @return {string} Prefixed label
+ * @return {string} Prefixed label (HTML)
*/
mw.rcfilters.dm.ItemModel.prototype.getPrefixedLabel = function ( inverted ) {
+ var escapedLabel = mw.html.escape( this.getLabel() );
if ( this.labelPrefixKey ) {
if ( typeof this.labelPrefixKey === 'string' ) {
- return mw.message( this.labelPrefixKey, this.getLabel() ).parse();
+ return mw.message( this.labelPrefixKey, escapedLabel ).parse();
} else {
return mw.message(
this.labelPrefixKey[
inverted && this.isSelected() ?
'inverted' : 'default'
],
- this.getLabel()
+ escapedLabel
).parse();
}
} else {
- return this.getLabel();
+ return escapedLabel;
}
};