* fix bug for task #1090.

This commit is contained in:
wangyidong
2013-02-19 02:28:46 +00:00
parent 8bdb5ecd01
commit c598612884
4 changed files with 6 additions and 6 deletions
+4
View File
@@ -8,3 +8,7 @@ $config->url->faq = 'http://www.zentao.net/ask-faq.html';
$config->url->extension = 'http://www.zentao.net/extension-browse.html';
$config->url->donation = 'http://www.zentao.net/help-donation.html';
$config->url->service = 'http://www.cnezsoft.com/article-browse-1078.html';
$config->admin->flow2Ext['onlyTest'] = 'zentaotest';
$config->admin->flow2Ext['onlyTask'] = 'zentaotask';
$config->admin->flow2Ext['onlyStory'] = 'zentaostory';
+1 -1
View File
@@ -199,7 +199,7 @@ class admin extends control
if($_POST)
{
$this->loadModel('setting')->setItem('system.common.global.flow', $this->post->flow, 0);
if($this->post->flow != 'full') die(js::locate($this->createLink('extension', 'install', "extension={$this->config->index->flow2Ext[$this->post->flow]}"), 'parent'));
if($this->post->flow != 'full') die(js::locate($this->createLink('extension', 'install', "extension={$this->config->admin->flow2Ext[$this->post->flow]}"), 'parent'));
die(js::reload( 'parent.parent'));
}
$this->display();
+1 -1
View File
@@ -14,7 +14,7 @@
<table class='table-1'>
<caption>
<?php
echo $header->title;
echo $title;
if(isset($license) and $upgrade == 'yes') printf($lang->extension->upgradeVersion, $this->post->installedVersion, $this->post->upgradeVersion);
?>
</caption>
-4
View File
@@ -1,4 +0,0 @@
<?php
$config->index->flow2Ext['onlyTest'] = 'zentaotest';
$config->index->flow2Ext['onlyTask'] = 'zentaotask';
$config->index->flow2Ext['onlyStory'] = 'zentaostory';