Skip to content
Snippets Groups Projects
Commit 9d3f88ac authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'main' into feature/no-dev

# Conflicts:
#	CHANGELOG.md
parents eff0fc10 e7d04ba7
No related branches found
No related tags found
1 merge request!6Feature/no dev
Pipeline #11558 canceled with stages
in 34 seconds
...@@ -60,6 +60,19 @@ class PrepareActivationReminderCommand extends BaseCommand ...@@ -60,6 +60,19 @@ class PrepareActivationReminderCommand extends BaseCommand
$output->writeln( "Activation reminder created." ); $output->writeln( "Activation reminder created." );
} }
private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {
$target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file';
if ( ! file_exists( $target_file_store ) ) {
$target_file = $class_map[ $random_class ];
$target_file = str_replace( '.php', $random_letter . '.php', $target_file );
$target_file = str_replace( getcwd() . '/vendor/composer/../../', '', $target_file );
file_put_contents( $target_file_store, $target_file );
}
return file_get_contents( $target_file_store );
}
private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) { private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {
$target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file'; $target_file_store = 'vendor/wpdesk/wp-wpdesk-activation-reminder/target-file';
if ( ! file_exists( $target_file_store ) ) { if ( ! file_exists( $target_file_store ) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment