From 066bf8b8f623ff7437a12b7e629e8d69a1d1386e Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 26 Mar 2020 09:12:44 +0800 Subject: [PATCH] * adjust for php5.3. --- lib/scm/subversion.class.php | 3 ++- tools/check.php | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/scm/subversion.class.php b/lib/scm/subversion.class.php index fca5841743..ac7afb777e 100644 --- a/lib/scm/subversion.class.php +++ b/lib/scm/subversion.class.php @@ -105,7 +105,8 @@ class Subversion ksort($dirs); $tags = array(); - $prefix = empty(trim($path, '/')) ? '/' : '/' . trim($path, '/') . '/'; + $trimed = trim($path, '/'); + $prefix = empty($trimed) ? '/' : '/' . $trimed . '/'; foreach($dirs as $dirNames) { ksort($dirNames); diff --git a/tools/check.php b/tools/check.php index e7aecc93b4..9cbf0344fa 100755 --- a/tools/check.php +++ b/tools/check.php @@ -108,12 +108,6 @@ $whiteList[] = 'testsuite-batchcreatecase'; $whiteList[] = 'testsuite-exporttemplet'; $whiteList[] = 'testsuite-import'; $whiteList[] = 'testsuite-showimport'; -$whiteList[] = 'webhook-browse'; -$whiteList[] = 'webhook-create'; -$whiteList[] = 'webhook-edit'; -$whiteList[] = 'webhook-bind'; -$whiteList[] = 'webhook-delete'; -$whiteList[] = 'webhook-log'; $whiteList[] = 'webhook-asyncsend'; $whiteList[] = 'testreport-setchartdatas'; $whiteList[] = 'chat-login';