Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Dec 29, 2024
1 parent 9340f0c commit cfb26c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# obtain one at https://mozilla.org/MPL/2.0/.
#
# @author Florian Anderiasch <[email protected]>
# @copyright 2011-2022 phpMyFAQ Team
# @copyright 2011-2024 phpMyFAQ Team
# @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
# @link https://www.phpmyfaq.de
# @since 2011-01-14
Expand Down Expand Up @@ -138,7 +138,9 @@ server {
}
}

try_files $uri @php;
location /admin/assets {
try_files $uri $uri/ =404;
}

location @php {
fastcgi_pass 127.0.0.1:9000;
Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Header set Access-Control-Allow-Headers "Content-Type, Authorization"
# the path to your phpMyFAQ installation
RewriteBase /
# Exclude assets from being handled by Symfony Router
RewriteRule ^(admin/assets|admin/images)($|/) - [L]
RewriteRule ^(admin/assets)($|/) - [L]
# Error pages
ErrorDocument 404 /index.php?action=404
# General pages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ tinymce.PluginManager.add('phpmyfaq', function (editor, url) {
// Add button to editor
editor.ui.registry.addButton('phpmyfaq', {
text: 'phpMyFAQ',
//image: 'images/phpmyfaq.gif',
onAction: () => {
const csrfToken = document.getElementById('pmf-csrf-token').value;
openDialog(csrfToken);
Expand Down
Binary file removed phpmyfaq/admin/images/phpmyfaq.gif
Binary file not shown.

0 comments on commit cfb26c2

Please sign in to comment.