xeoncross / forumfive

A < 10kB forum system in PHP - Code Golf
164 stars 18 forks source link

Improved the DB constant and db() method #5

Closed queued closed 11 years ago

queued commented 11 years ago

To prevent the system from loading the DB constant as string, it has been changed to the relative path through the database file.

The $db variable on the db() method has been improved to verify if the variable is an instance of the PDO class.

Minor changes on the index.php and their assets.

xeoncross commented 11 years ago

I appreciate the cleanup. However, the logic for the PDO instance and UTF-8 meta tag seem incorrect. I'll fix those.