Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add support for installing plugins & themes by uploading ZIP files #1174

Draft
wants to merge 16 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions modules/system/classes/PluginManager.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<?php namespace System\Classes;

use Db;
use App;
use Str;
use Log;
use File;
use Lang;
use View;
use Cache;
use Config;
use Schema;
use SystemException;
<?php

namespace System\Classes;

use Backend\Classes\NavigationManager;
use FilesystemIterator;
use RecursiveIteratorIterator;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\View;
use RecursiveDirectoryIterator;
use RecursiveIteratorIterator;
use System\Models\PluginVersion;
use Winter\Storm\Exception\SystemException;
use Winter\Storm\Foundation\Application;
use Winter\Storm\Support\ClassLoader;
use Backend\Classes\NavigationManager;
use Winter\Storm\Support\Facades\Config;
use Winter\Storm\Support\Facades\File;
use Winter\Storm\Support\Str;

/**
* Plugin manager
Expand Down Expand Up @@ -664,7 +665,7 @@ protected function loadDisabled(): void
if (
$this->app->hasDatabaseTable('system_plugin_versions')
) {
$userDisabled = Db::table('system_plugin_versions')->where('is_disabled', 1)->lists('code') ?? [];
$userDisabled = DB::table('system_plugin_versions')->where('is_disabled', 1)->lists('code') ?? [];
foreach ($userDisabled as $code) {
$this->flagPlugin($code, static::DISABLED_BY_USER);
}
Expand Down
Loading
Loading