Skip to content

Commit

Permalink
only show *.sh files as userscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Mar 19, 2024
1 parent cf6a3ad commit cfdd18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/userScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
<option value="false"><?php print $lang['cardFormYTSelectDefault']; ?></option>
<?php
// read the subfolders of $Audio_Folders_Path
$audiofolders = array_filter(glob($conf['scripts_abs'].'/userscripts/*'), 'is_file');
$audiofolders = array_filter(glob($conf['scripts_abs'].'/userscripts/*.sh'), 'is_file');
usort($audiofolders, 'strcasecmp');


Expand Down

0 comments on commit cfdd18c

Please sign in to comment.