From b6310b53c8f2a94216fa8ffcfa7e56c19e5e4116 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 18 May 2012 01:50:22 +0000 Subject: [PATCH] add redirects parameter --- application/default/controllers/MetainfoController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/MetainfoController.php b/application/default/controllers/MetainfoController.php index b7ace0d9..8d842f12 100644 --- a/application/default/controllers/MetainfoController.php +++ b/application/default/controllers/MetainfoController.php @@ -2,7 +2,7 @@ class MetainfoController extends Zend_Controller_Action { function indexAction() { $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); while (!feof($wikifp)) { $wikiLines=fgets($wikifp);