Thanks for the tip. I was able to get it to work by calling the title
newFromText function and then moving the code into a spot where it
Only executed once and didn't try to insert a new article with the same
title in the database twice. This was the reason for my database error.
Thanks,
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Brion Vibber
Sent: Thursday, October 13, 2005 4:00 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Creating a new article from a from
Harris, Mike wrote:
$myTitle = new Title("Change Control
Test");
You might want to look at the existing code for how title objects are
created. There are factory functions for this.
-- brion vibber (brion @
pobox.com)