Application error and fix

I found a bug here and updated the project. If your already using it around line 71 of the application you'll see

<cfif listGetAt( cgi.script_name, ( listLen( cgi.script_name, '/' ) - 1 ), '/' ) EQ "admin">


replace with

<cfif GetDirectoryFromPath(cgi.script_name) EQ "/admin/">


Also when adding a new post there is a check box on the bottom called External Page, this creates a post page that is not listed under posts. So you can add menu pages and track views and allow comments for those pages. Around line 54 you'll find this.

SELECT COUNT(bl.blID) as bcount
FROM blog_tbl bl


change to

SELECT COUNT(bl.blID) as bcount
FROM blog_tbl bl
WHERE blPage <> 1




Close
E-mail It