From a534f1056a93181269537d2000a4ba2fce22da31 Mon Sep 17 00:00:00 2001 From: Hao Sun Date: Thu, 2 Mar 2023 17:17:21 +0800 Subject: [PATCH] * zin: add createLink to namespace zin --- module/product/ui/all.html.php | 10 +++++----- zin/zentao.php | 7 +++++++ zin/zin.php | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 zin/zentao.php diff --git a/module/product/ui/all.html.php b/module/product/ui/all.html.php index 77d602c1b6..bdfdd717fc 100644 --- a/module/product/ui/all.html.php +++ b/module/product/ui/all.html.php @@ -201,7 +201,7 @@ foreach ($lang->product->featureBar['all'] as $key => $text) $statuses[] = array( 'text' => $text, 'active' => ($key == $browseType), - 'url' => \helper::createLink($this->moduleName, $this->methodName, 'all', "browseType=$key&orderBy=$orderBy"), + 'url' => createLink($this->moduleName, $this->methodName, 'all', "browseType=$key&orderBy=$orderBy"), 'class' => 'btn btn-link' ); } @@ -227,7 +227,7 @@ $btnGroup[] = array( 'text' => $lang->product->export, 'icon' => 'export', 'class' => 'btn secondary', - 'url' => \helper::createLink('product', 'export', $browseType, "status=$browseType&orderBy=$orderBy"), + 'url' => createLink('product', 'export', $browseType, "status=$browseType&orderBy=$orderBy"), ); if($config->systemMode == 'ALM') { @@ -235,14 +235,14 @@ if($config->systemMode == 'ALM') 'text' => $lang->product->line, 'icon' => 'edit', 'class' => 'btn secondary', - 'url' => \helper::createLink('product', 'manageLine', $browseType), + 'url' => createLink('product', 'manageLine', $browseType), ); } $btnGroup[] = array( 'text' => $lang->product->create, 'icon' => 'plus', 'class' => 'btn primary', - 'url' => \helper::createLink('product', 'create') + 'url' => createLink('product', 'create') ); page @@ -269,7 +269,7 @@ page ( set('text', $lang->{$app->tab}->common), set('icon', $app->tab), - set('url', \helper::createLink($app->tab, 'browse')), + set('url', createLink($app->tab, 'browse')), ), pagenavbar ( diff --git a/zin/zentao.php b/zin/zentao.php new file mode 100644 index 0000000000..e1fe358d40 --- /dev/null +++ b/zin/zentao.php @@ -0,0 +1,7 @@ +