[Mediawiki-l] UNIQ Message on Extensions For doEdit()

Ray Slakinski ray.slakinski at gmail.com
Wed Feb 21 17:48:12 UTC 2007


I am trying to autocreate redirect pages using a custom tag 
(extension) but getting a UNIQ message with the Article::doEdit  
command.  Is what I'm trying to do at possible?  This is the code:

		$title = Title::makeTitle( NS_MAIN, trim($redirName) );
		
		if( is_object($title) ) {
			if( !$title->exists() )  {
				$redirArticle = new Article( $title );
				$text = '#REDIRECT [['.$parser->mTitle->getPrefixedText().']]';
				$redirArticle->doEdit($text, "Adding Redirect");
			}
		}

-- Ray Slakinski


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 447 bytes
Desc: This is a digitally signed message part
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20070221/5c931605/attachment.pgp 


More information about the MediaWiki-l mailing list