Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Apr 16, 2024
1 parent 8cf4e3d commit a4d11c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system/src/Plugins.php
Expand Up @@ -37,12 +37,12 @@ public static function getRoutes()
//
// Get all plugins/*/pages/subFolder/*.php pages
//
$pluginSubFolders = glob(PLUGINS . $plugin['filename'] . '/pages/*', GLOB_ONLYDIR);
foreach ($pluginSubFolders as $folder) {
$pluginPagesSubFolders = glob(PLUGINS . $plugin['filename'] . '/pages/*', GLOB_ONLYDIR);
foreach ($pluginPagesSubFolders as $folder) {
$folderName = pathinfo($folder, PATHINFO_FILENAME);

$subFolders = glob(PLUGINS . $plugin['filename'] . '/pages/' . $folderName . '/*.php');
foreach ($subFolders as $file) {
$subFiles = glob(PLUGINS . $plugin['filename'] . '/pages/' . $folderName . '/*.php');
foreach ($subFiles as $file) {
$file = str_replace(PLUGINS, 'plugins/', $file);
$name = $folderName . '/' . pathinfo($file, PATHINFO_FILENAME);

Expand Down

0 comments on commit a4d11c1

Please sign in to comment.