Fix for getting the right parameter
With this patch the detail action always assumes that the last parameter is the value for getting the detail record.

When using the index and detail action from the same page we should use parameter(1)
When using the index and detail action from different pages we should use parameter(0)
Used fork coding standards
Remove variable only used for return
Update getAllCategories.base.php

Typo in SQL statement in the getAllCategories.base.php file.
ORDER BY c.sequence AS => ORDER BY c.sequence ASC
Merge pull request #49 from KoenHeye/patch-1

Update getAllCategories.base.php
Second attempt for styling code like https://github.com/forkcms/coding-standards
Line wrap fix
Formatter placed curly braces back on same line, fixed
Merge pull request #48 from bart-lysander/patch-1

Patch for detail action taking wrong parameter