Extension talk:CategoryTests/Archive

invalidtitle: bad title
Hi Ryan. It seem to this extension don't allow using Chinese like following: It will show the following message invalidtitle: bad title --Roc michael 06:13, 6 May 2008 (UTC)
 * That would then be a bug with MediaWiki's API and not this extension, you may want to create a bug on bugzilla (product: MediaWiki, component: API, issue: non-English characters are not being checked correctly as titles in queries or something along that matter). --Skizzerz talk - contribs 23:51, 6 May 2008 (UTC)
 * I also encountered this message, when viewing an article that contained an apostrophe. In function ifcategory, using $getText instead of getPartialURL seemed to help. -Jlerner 14:05, 15 May 2008 (UTC)

Bug in $data array variable?
I made the following code changes in order to get ifcategory to cooperate. Jlerner 04:33, 15 May 2008 (UTC) $ diff CategoryTests.php CategoryTests.php.orig 53d52 < 			$page_id = $title->getArticleID; 59d57 < 			$page_id = $title->getArticleID; 65c63 < 		if(!array_key_exists('categories', $data['query']['pages'][$page_id])) { --- > 		if(!array_key_exists('categories', $data['query']['pages']['1'])) { 68,69c66,67 < 		foreach( $data['query']['pages'][$page_id]['categories'] as $key => $value ) { < 			if("Category:{$category}" == $data['query']['pages'][$page_id]['categories'][$key]['title']) { --- > 		foreach( $data['query']['pages']['1']['categories'] as $key => $value ) { > 			if("Category:{$category}" == $data['query']['pages']['1']['categories'][$key]['title']) {

How to use the update code
Is there somebody giving me the detail of how to use the update code or make the using more easier. Thanks! :-)--Roc michael 11:14, 20 May 2008 (UTC)
 * You want me to send you a copy of the code that is working for me? -Jlerner 13:26, 20 May 2008 (UTC)