From 7b8ce575cd1bdd04cb4ef3e88dfa423dbb9c8ca5 Mon Sep 17 00:00:00 2001 From: Ruing Date: Sun, 29 Jan 2017 18:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=90=8C=E5=90=8D=E6=97=B6=20=E8=BF=9B=E8=A1=8C=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E9=93=BE=E6=8E=A5=E4=BC=AA=E9=9D=99=E6=80=81=E6=97=B6?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E8=BE=93=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/cache/cache_setting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/source/function/cache/cache_setting.php b/upload/source/function/cache/cache_setting.php index 5a8d0f1..68076df 100644 --- a/upload/source/function/cache/cache_setting.php +++ b/upload/source/function/cache/cache_setting.php @@ -467,9 +467,9 @@ function build_cache_setting() { $data['topnavs'][$id]['code'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['code']); } } - foreach($data['plugins']['jsmenu'] as $key => $nav) { + foreach($data['plugins']['jsmenu'] as $id => $nav) { foreach ($output['preg']['search'] as $key => $value) { - $data['plugins']['jsmenu'][$key]['url'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['url']); + $data['plugins']['jsmenu'][$id]['url'] = preg_replace_callback($value, create_function('$matches', 'return '.$output['preg']['replace'][$key].';'), $nav['url']); } } }