Skip Menu |

This queue is for tickets about the MediaWiki-API CPAN distribution.

Report information
The Basics
Id: 106917
Status: rejected
Priority: 0/
Queue: MediaWiki-API

People
Owner: Nobody in particular
Requestors: darktwains [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Addition of a helper function to get page with page id (code included)
Date: Sun, 6 Sep 2015 12:04:06 -0700
To: bug-mediawiki-api [...] rt.cpan.org
From: Dark Twain <darktwains [...] gmail.com>
Real simple addition. Copied the get_page function to create a get_pageid function. Changed title parameter to pageid in the get_pageid function to pageid. I have an app that need to reference pages by pageid instead of titles. Hope this can get merged. I am an old school developer coming back into the programming world. Included my version of the module and a patch (made with diff -u) for API.pm. Thanks for maintaining this module. Very useful for my organization. If you are ever in PDX Oregon, I got a free burrito for you (@ Santeria thesanteria.com) Thank you Wade
Download patch
application/octet-stream 2.6k

Message body not shown because it is not plain text.

Thanks. However - I would prefer not to add any further helper functions in the module - the get_page really was only included as a basic test/example - for more functions you could try something like http://search.cpan.org/~lifeguard/MediaWiki-Bot-5.006002/lib/MediaWiki/Bot.pm or just keep the function in your own code.