add redirects parameter

This commit is contained in:
wlx 2012-05-18 01:50:22 +00:00
parent 71ab8c65ad
commit b6310b53c8
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
class MetainfoController extends Zend_Controller_Action { class MetainfoController extends Zend_Controller_Action {
function indexAction() { function indexAction() {
$title=$this->_request->getParam('title'); $title=$this->_request->getParam('title');
$filePath="http://wiki.westgis.ac.cn/api.php?format=php&action=query&prop=revisions&titles=$title&rvprop=content"; $filePath="http://wiki.westgis.ac.cn/api.php?format=php&action=query&prop=revisions&titles=$title&rvprop=content&redirects";
$wikifp=fopen($filePath,r); $wikifp=fopen($filePath,r);
while (!feof($wikifp)) { while (!feof($wikifp)) {
$wikiLines=fgets($wikifp); $wikiLines=fgets($wikifp);