Geeklog-Core / geeklog

Geeklog - The Secure CMS.
https://www.geeklog.net
24 stars 19 forks source link

When URL Routing Enabled there are Undeclared variables when Viewing Full Article and Print #1058

Closed eSilverStrike closed 4 years ago

eSilverStrike commented 4 years ago

This is related to the issue #945

Not sure how I missed not fixing this when I worked on #945 but some global variable declarations where missing which can cause the article page to not display correctly or error out.

This is a scope issue since the router in index.php loads lib-common.php and not article.php

eSilverStrike commented 4 years ago

A 404 error can also happen if URL Routing is enabled and multview is enabled since this url

http://www.example.com/article/test-article

Would be redirected to http://www.example.com/article.php (thanks to multiview looking for the file) instead of http://www.example.com/index.php as it should be