Skip to content

Commit

Permalink
Fixed the definition of two constants so that Donut can be checked ou…
Browse files Browse the repository at this point in the history
…t outside the Q2A folder

In case you pull Donut in a separate directory, then build a symbolic link of the plugin and the theme into q2a, two defines would break the code because they would refer to the original checkout dir and not q2a. By using Q2A already defined constants we can work around this issue.

Fixes issue amiyasahu#111
  • Loading branch information
bertrandgorge committed Feb 11, 2020
1 parent 3574e1f commit 526178e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qa-plugin/Donut-admin/qa-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
}

//Define global constants
@define( 'DONUT_ADMIN_PLUGIN_DIR', dirname( __FILE__ ) );
@define( 'DONUT_ADMIN_PLUGIN_FOLDER', basename( dirname( __FILE__ ) ) );
@define( 'DONUT_ADMIN_PLUGIN_DIR', QA_BASE_DIR . 'qa-plugin/' . DONUT_ADMIN_PLUGIN_FOLDER);

@define( 'DONUT_CURR_DB_VERSION', 1 ); //Helps in updating new mandatory options

Expand Down
2 changes: 1 addition & 1 deletion qa-theme/Donut-theme/qa-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Defines the base directory of the theme
*/
@define( 'DONUT_THEME_BASE_DIR', dirname( __FILE__ ) );
@define( 'DONUT_THEME_BASE_DIR', QA_BASE_DIR . 'qa-theme/Donut-theme');

/**
* define the directory name of the theme directory
Expand Down

0 comments on commit 526178e

Please sign in to comment.