Hi,

I'am using now:

    $titleObj = Title::newFromText('Extension:Test2');

    if (!$titleObj->exists()) {

      $articleObj = new WikiPage($titleObj);

      $articleObj->doEdit(file_get_contents($filename), 'Generated from 
extension');

    }

But I'am getting the following warning and error with MediaWiki 1.23.0 when calling Title::newFromText :

PHP Warning: spl_object_hash() expects parameter 1 to be object, null given ... PHP Catchable fatal error: Argument 1 passed to MediaWikiTitleCodec::__construct() must be instance of Language, null given, ...

Any ideas?

Sigbert

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to