Revision: 45995
Author: werdna
Date: 2009-01-22 02:01:27 +0000 (Thu, 22 Jan 2009)
Log Message:
-----------
Make sure we don't talk about nonexistent tags.
Modified Paths:
--------------
branches/change-tagging/phase3/includes/ChangeTags.php
Modified: branches/change-tagging/phase3/includes/ChangeTags.php
===================================================================
--- branches/change-tagging/phase3/includes/ChangeTags.php 2009-01-22
01:47:59 UTC (rev 45994)
+++ branches/change-tagging/phase3/includes/ChangeTags.php 2009-01-22
02:01:27 UTC (rev 45995)
@@ -34,6 +34,8 @@
$tags = array( $tags );
}
+ $tags = array_filter( $tags ); // Make sure we're submitting
all tags...
+
if (!$rc_id && !$rev_id && !$log_id) {
throw new MWException( "At least one of: RCID, revision
ID, and log ID MUST be specified when adding a tag to a change!" );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs