add redirects parameter
This commit is contained in:
parent
71ab8c65ad
commit
b6310b53c8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue