From 61a7dde845c6fc4754aa822b0b4721060cdb3151 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 16 Aug 2018 08:37:54 +0800 Subject: [PATCH] Asset.php --- Asset.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Asset.php b/Asset.php index d0331517..503a94e7 100644 --- a/Asset.php +++ b/Asset.php @@ -36,11 +36,8 @@ class Pman_Core_Asset extends Pman { function get($s='', $opts = Array()) { - if( - !empty($_REQUEST['_clear_cache']) && - !empty($_REQUEST['_clear_module']) - ) { - $this->clearCompiledFilesCache($_REQUEST['_clear_module']); + if(!empty($_REQUEST['_clear_cache'])) { + $this->clearCompiledFilesCache(); } @@ -167,7 +164,7 @@ class Pman_Core_Asset extends Pman { return false; } - function clearCompiledFilesCache($module) + function clearCompiledFilesCache() { require_once 'System.php'; $mods = $this->modulesList(); -- 2.39.2