On 12-03-12 01:20 PM, Marcin Cieslak wrote:
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)

Thanks, I'll have a look at that also.

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

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

Reply via email to