robdrimmie / babynewt

Simple, unthreaded forum software written in PHP with a MySQL database.
MIT License
8 stars 1 forks source link

Minor code cleanups #3

Closed finn closed 12 years ago

finn commented 12 years ago

Was just poking around the babynewt codebase and found these minor code cleanups that hadn't made it over to the main repo yet. There are some changes in requires by me and the use of a tmp directory by @daveadams.

finn commented 12 years ago

Also fixed permissions on php files, README, etc.to 644 instead of 755.

finn commented 12 years ago

That last commit looks big, but it's mostly just string cleanup. Switching from double quotes to single quotes wherever there is no need for variable interpolation. Makes a lot of the escaping simpler and easier to read.

I also fixed a couple of typos / small bugs in custom.php since it moved to the top level from being in a directory down the relative paths were wrong.