2012-09-26, 16:04:04
mikeh Wrote:My functions are unique. Try not to jump to conclusions.
I wasn't jumping to anything, that was a response to a post suggesting a conflicts.
I know your code like I know a good book.
Your plugin files and your functions names have no prefix.
"Cannot redeclare class Blog"
a class name of Blog is not unique
mh_blog would be.
When using a plugin or extensible system without special scoping you should prefix all variables and function names in global scope to avoid collisions with others.
When some other person releases a blog plugin and names their plugin blog.php or has a class called blog.
And someone tries to install both, then the exact error posted previously will be the result. It was just a logical suggestion of standardized practices.