Skip to content

Commit

Permalink
Fix the template list not populating in the edit app dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwbest committed Oct 30, 2024
1 parent 73c031f commit ee2ee1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion root/app/www/public/ajax/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}

if ($_POST['m'] == 'applyTemplateOptions') {
echo file_get_contents(ABSOLUTE_PATH . $_POST['template']);
echo file_get_contents($_POST['template']);
}

if ($_POST['m'] == 'deleteCustomTemplate') {
Expand Down
2 changes: 1 addition & 1 deletion root/app/www/public/functions/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function getTemplateList()
{
global $starrApps;

$templateLocations = ['templates/', APP_USER_TEMPLATES_PATH];
$templateLocations = [ABSOLUTE_PATH . 'templates/', APP_USER_TEMPLATES_PATH];
$list = [];
foreach ($starrApps as $starrApp) {
foreach ($templateLocations as $templateLocation) {
Expand Down

0 comments on commit ee2ee1e

Please sign in to comment.