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

Jim Wilson wilson.jim.r at gmail.com
Wed Feb 21 17:55:53 UTC 2007


What extensions (other than the one you're developing) do you have
installed?

What version of MW are you developing against?

On 2/21/07, Ray Slakinski <ray.slakinski at gmail.com> wrote:
>
>
> 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
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
>


More information about the MediaWiki-l mailing list