From 19db209cd25a83da36dcac5ba665689c7171fdaa Mon Sep 17 00:00:00 2001 From: dingguodong Date: Mon, 29 May 2023 14:15:25 +0800 Subject: [PATCH] * Remove unused variables and the same the block for the case. --- module/common/model.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index c664af9a10..947e9f745a 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -715,9 +715,6 @@ class commonModel extends model $params = "parentProgramID=0&extra=from=global"; break; case 'kanbanspace': - $isOnlyBody = true; - $attr = "class='iframe' data-width='75%'"; - break; case 'kanban': $isOnlyBody = true; $attr = "class='iframe' data-width='75%'"; @@ -915,7 +912,7 @@ class commonModel extends model */ public static function printHomeButton($tab) { - global $lang, $config, $app; + global $lang, $app; if(!$tab) return; if($tab == 'admin' and $app->control and method_exists($app->control, 'loadModel')) $app->control->loadModel('admin')->setMenu(); @@ -1558,10 +1555,10 @@ class commonModel extends model */ public static function printOrderLink($fieldName, $orderBy, $vars, $label, $module = '', $method = '') { - global $lang, $app; + global $app; if(empty($module)) $module = isset($app->rawModule) ? $app->rawModule : $app->getModuleName(); if(empty($method)) $method = isset($app->rawMethod) ? $app->rawMethod : $app->getMethodName(); - $className = 'header'; + $isMobile = $app->viewType === 'mhtml'; $order = explode('_', $orderBy);