aboutsummaryrefslogtreecommitdiffstats
path: root/core/include/post/list.php
AgeCommit message (Collapse)AuthorFilesLines
2021-06-17Merge branch 'master' into 'optimization'optimizationThomas Lange1-38/+28
2021-06-14Remove more redundant try/catch blocksThomas Lange1-37/+28
Remove all try/catch blocks where the exception handling did not differ from the exception handler already defined by "set_exception_handler".
2019-10-29Remove PHP closing tags and add LF to text filesThomas Lange1-1/+0
Remove the unnecessary PHP closing tags and ensure that *all* text files ending with a LF character.
2018-04-01Use method "buildByAttribute" to create Item instances for item listingThomas Lange1-4/+4
This commit significantly reduces the number of database queries required to display a list of pages, posts or users. This could be achieved by using "SELECT * FROM […]" in combination with the new implemented factory method "buildByAttribute". Previously, the first database query returned an array of unique item IDs that were then passed to the factory method "build" within the "foreach" loop which caused the application to make an additional database query like "SELECT * FROM […] WHERE id = {current_id}" for every single item ID to get it's payload data. Since this commit, this additional query for every item is not necessary anymore.
2018-02-14Add configuration option "$ITEM.SINGLE_REDIRECT"Thomas Lange1-1/+11
Each option can be set to "TRUE" or "FALSE" (the default value is "FALSE"). For example, if you only have one user and "USER.SINGLE_REDIRECT" is set to "TRUE", then requests to "/user/" will be automatically redirected to "/user/username/".
2017-04-19Comments added and unnecessary "abs" function calls removed.Thomas Lange1-1/+4
2017-04-11The system directory has been moved to a non-public directory. After the ↵v1.2Thomas Lange1-0/+65
commit e33c245d910e55b8cab407a03e669470509a705d, it is no longer necessary that the directory is publicly accessible via HTTP because all requests are running through the router.