This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fsPromises = require('fs').promises; | |
const path = require('path'); | |
/** | |
* Recursively removes empty directories from the given directory. | |
* | |
* If the directory itself is empty, it is also removed. | |
* | |
* Code taken from: https://gist.github.com/jakub-g/5903dc7e4028133704a4 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/engine/Library/Enlight/Template/Plugins/function.flink.php b/engine/Library/Enlight/Template/Plugins/function.flink.php | |
index 83fb90b3cc..084eed24ba 100644 | |
--- a/engine/Library/Enlight/Template/Plugins/function.flink.php | |
+++ b/engine/Library/Enlight/Template/Plugins/function.flink.php | |
@@ -45,7 +45,7 @@ function smarty_function_flink($params, $template) | |
// Try to find the file on the filesystem | |
foreach ($templateDirs as $dir) { | |
if (file_exists($dir . $file)) { | |
- $file = Enlight_Loader::realpath($dir) . DIRECTORY_SEPARATOR . str_replace('/', DIRECTORY_SEPARATOR, $file); | |
+ $file = preg_replace('/\/+/', DIRECTORY_SEPARATOR, ($dir . DIRECTORY_SEPARATOR . $file)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Recursively creates the missing parts of a directory path in a manner that is concurrency-safe. | |
* | |
* @see https://bugs.php.net/bug.php?id=35326 | |
* | |
* @param string $pathname a (nested) directory path to create | |
* @param integer $mode the permission to use | |
* @return bool true iff the directory path was successfully created | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class Shopware_Plugins_Backend_AddRemoveAttributesTest_Bootstrap extends Shopware_Components_Plugin_Bootstrap | |
{ | |
public function getInfo() | |
{ | |
return [ | |
'label' => 'Add/remove attributes test', | |
'description' => 'No description' | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class Shopware_Plugins_Backend_BaseStoreConfigsTest_Bootstrap extends Shopware_Components_Plugin_Bootstrap | |
{ | |
/** | |
* @return array | |
*/ | |
public function getInfo() | |
{ | |
return [ |