Debugging code for bug 17815

This commit is contained in:
Andrew Garrett 2009-03-06 23:11:07 +00:00
parent 58fdf4f05d
commit 02a84cbd90

View file

@ -44,6 +44,8 @@ class AbuseFilterVariableHolder {
}
function addHolder( $addHolder ) {
if ( !is_object($addHolder) )
throw new MWException( "Invalid argument to AbuseFilterVariableHolder::addHolder" );
$this->mVars = array_merge( $this->mVars, $addHolder->mVars );
}