>> Robert Cummings <[email protected]> wrote:
> On 12-03-12 05:25 AM, Max Semenik wrote:
>> On 12.03.2012, 12:44 Robert wrote:
>>
>>> Hello all,
>>
>>> I was wondering if there's a clean way within the Wiki codebase to
>>> generate a history entry for an article without actually modifying the
>>> content. Essentially, from within an extension, I'd like to treat the
>>> history as a logfile for specific events related to the article that
>>> don't actually modify the article.
> >
>>
>> See Revision::newNullRevision()
>
>
> Perfect, thank you!

or maybe you can do something like

                $logEntry = new ManualLogEntry( 'something', 
'somethingmaybeese' );
                $logEntry->setPerformer( $user );
                $logEntry->setTarget( $this->mTitle );
                $logEntry->setComment( $reason );
                $logid = $logEntry->insert();
                $logEntry->publish( $logid );

(from WikiPage.php line 2990)

//Saper


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to