[Mediawiki-l] creating a title object

Michael Heyder Info at hafenvolleyballer.de
Wed Sep 12 05:44:20 UTC 2007


I'm trying to work width prototype instead of the wiki-ajax-framework.
Therefore I need a php-file whichhandels the responses.

Response.php
require('../../includes/DefaultSettings.php');
require('../../includes/GlobalFunctions.php');
require('../../includes/Sanitizer.php');
require('../../includes/Title.php');

if (isset($_POST['title']))
     checkArticleTitle($_POST['title']);

function checkArticleTitle($title)
     {
     $wgTitle=new Title();

     $stitle=$wgTitle->newFromText($title);

     var_dump($title);
     }

But this don't create a title object?

What's going wrong

regards
mic




More information about the MediaWiki-l mailing list