Update and rename source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php to source/SlackPack/usr/local/emhttp/plugins/SlackPack/include/PackageQuery.php

This commit is contained in:
damnoodle 2022-08-23 12:24:01 -05:00 committed by GitHub
parent 7128bf37a0
commit b6d04edbb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
<? <?
require_once '/usr/local/emhttp/plugins/NerdPack/include/SlackPackHelpers.php'; require_once '/usr/local/emhttp/plugins/SlackPack/include/SlackPackHelpers.php';
require_once '/usr/local/emhttp/plugins/NerdPack/include/DownloadHelpers.php'; require_once '/usr/local/emhttp/plugins/SlackPack/include/DownloadHelpers.php';
// Only download repo update if the current one is 1 hour old or more // Only download repo update if the current one is 1 hour old or more
if (!file_exists($repo_file) || !empty($_GET['force']) || (filemtime($repo_file) < (time() - 3600))) { if (!file_exists($repo_file) || !empty($_GET['force']) || (filemtime($repo_file) < (time() - 3600))) {