Skip to content

Commit

Permalink
Merge pull request #26 from Duffion/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
IMBAmcDuffs authored Aug 11, 2021
2 parents 5ef2607 + 55b6c96 commit c547c44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions fulcrum.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Plugin Name: Fulcrum - Helper Tool
* Plugin URI: https://duffion.com
* Description: This is the custom built tool that allows for modular helper tools for Fulcrum Synced sites
* Version: 0.9.4
* Version: 0.9.6
* Author: Chris "Duffs" Crevling
* Text Domain: fulcrum-pos
* Author URI: https://duffion.com
Expand All @@ -26,7 +26,7 @@
class D_FULCRUM
{

var $version = '0.9.4';
var $version = '0.9.6';

public $settings = [];

Expand Down Expand Up @@ -73,6 +73,7 @@ function _load()
// Lets create a global instance to make sure we only load items not already loaded //
$d_loaded = [];
$d_instance = (!isset($d_instance) ? [] : $d_instance);
$this->_define();

require_once $this->dirs['plugin'] . '/' . $this->dirs['inc'] . '/util.php';
require_once $this->dirs['plugin'] . '/' . $this->dirs['traits'] . '/d-primary.php';
Expand Down
3 changes: 1 addition & 2 deletions inc/traits/d-primary.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ function autoloader($dirs)
$dir = $d_plugin_dirs['plugin'] . '/' . $d_plugin_dirs[$ns];
$scan = scandir($dir);

if ($scan && count($scan) > 0) {

if ($scan && count($scan) > 0 && $dir !== $d_plugin_dirs['plugin'] . '/') {
foreach ($scan as $i => $file) {
if ($file !== '.' && $file !== '..' && $file !== '.git' && $file !== '' && file_exists($dir . '/' . $file)) {
require_once $dir . '/' . $file;
Expand Down
2 changes: 1 addition & 1 deletion inc/vendors/plugin-update-checkers/d__setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
//Optional: If you're using a private repository, specify the access token like this:
// $update_checker->setAuthentication($config['auth_token']);

$d__plugin_info = $update_checker->getVcsApi()->enableReleaseAssets();
// $d__plugin_info = $update_checker->getVcsApi()->enableReleaseAssets();

0 comments on commit c547c44

Please sign in to comment.