Commit graph

3322 commits

Author SHA1 Message Date
Daku
258fda188e use different selector rather than hardcoding url 2014-03-08 15:20:50 +00:00
Shish
cf7f79194e Merge branch 'master' into develop 2014-03-07 08:28:03 +00:00
Shish
fa5ad5b77d bump the minimum PHP version, the README was updated but not the version check in the code. Fixes #383 2014-03-07 08:27:34 +00:00
Shish
faec25226a 'x ?: y' is a new PHP thing? 2014-03-06 09:14:03 +00:00
Daku
ddb6d32e29 fix fourm errors under postgresql 2014-03-02 21:59:19 +00:00
Daku
87065d08f6 use elseif 2014-03-02 21:58:45 +00:00
Daku
524ead8344 PostgreSQL doesn't return trimmed results for CHAR columns, so use VARCHAR instead 2014-03-02 21:07:25 +00:00
Daku
a863072bfb DATETIME > SCORE_DATETIME
fixes #354
2014-03-02 18:50:46 +00:00
Daku
53a7e23b64 various autocomplete tweaks
* made limit for /api/internal/tag_list/complete optional (as this breaks the autocomplete on dbs with lots of tags)
* removed delay + minChars = 1 again (due to above change)
* first autocomplete tag is selected by default
* tab now works as a select button
* autocompleted tags will now be followed by a space (so the next tag can be instantly autocompleted)
2014-02-28 02:03:41 +00:00
Daku
e78ddc69f3 fix strict standard errors 2014-02-25 21:51:52 +00:00
Daku
34e90c1cfc updated date/links in footer 2014-02-25 17:56:51 +00:00
Shish
63a71c239c Merge pull request #381 from jgen/master
Automated Tests via Travis-CI
2014-02-25 00:17:02 +00:00
Daku
df29537e74 use default minchars again
the tag list only returns a max of 10 results, and is only called once per autocomplete, making it harder to autocomplete longer tags
2014-02-24 20:07:05 +00:00
Daku
d675827173 order[=|:]random_#### metatag
possible replacement for random_list ext?
2014-02-24 19:54:15 +00:00
Daku
320a92289b have query use EXISTS rather than IN
preferably we would have a table with image tag counts, but this works for now
2014-02-24 01:50:31 +00:00
Daku
790cb0d7a9 [.+]tags metatag for tag_categories
This is nowhere as near as fast as I'd like. Need to find a better query.
2014-02-24 01:40:35 +00:00
Daku
58c5746e9b speed: use isset rather than identical 2014-02-23 22:32:15 +00:00
Daku
bdb3255116 speed: lowercase ext on image insert
avoids having to lowercase every build_thumb_html call
most extensions tend to match against their lowercase versions anyway
2014-02-23 22:27:52 +00:00
jgen
cebc197fba Merge branch 'develop' of git://github.com/shish/shimmie2 2014-02-23 03:11:09 -05:00
jgen
55603a0acb Yay, the Travis tests are working now! Let's increase the number of PHP versions to test with. 2014-02-23 03:07:19 -05:00
jgen
6f59de4d45 Prevent an internal server error occurring when mincount is less than 1. 2014-02-23 02:51:33 -05:00
jgen
2b4ffb1e60 Argh. 2014-02-23 02:18:45 -05:00
jgen
38b494125c Postgres requires you to include the GROUP BY column in the SELECT columns. Should be okay since we don't care about other columns though. 2014-02-23 02:15:19 -05:00
jgen
e2fa6d316e Realpath isn't used anymore. 2014-02-22 23:36:08 -05:00
jgen
cf35bf82a8 Postgres doesn't support the DATETIME field. 2014-02-22 23:30:58 -05:00
jgen
e30520a5ef Fixing typo. 2014-02-22 23:23:23 -05:00
jgen
9892d1f7fd PostgreSQL does not support INDEX() inside the CREATE TABLE method. You must create the index as a separate query. Fortunately MySQL also support this way of doing things as well. 2014-02-22 23:02:11 -05:00
jgen
5effee4812 Remove these indexes as we are creating them manually. 2014-02-22 22:13:26 -05:00
jgen
72ea1acf1d Forgot to remove the comma 2014-02-22 22:06:33 -05:00
jgen
1c6b306ac6 Fixing the installer to work with Postgres. 2014-02-22 22:04:14 -05:00
jgen
668de39626 Remove the debugging. 2014-02-22 19:45:53 -05:00
jgen
6da5f27447 Make sure we install the php5 postgres drivers. 2014-02-22 19:44:50 -05:00
jgen
8bbaf85114 Need to figure out why the Post data differs from what is specified on the command line. 2014-02-22 19:10:18 -05:00
jgen
aca6caa91a More debugging. 2014-02-22 18:52:23 -05:00
jgen
13e844a2f7 Output the DSN. 2014-02-22 18:32:42 -05:00
jgen
c5b265b177 No need to drop the database as the VM is reset every time. 2014-02-22 16:42:12 -05:00
jgen
532557bdc8 Output the DATABASE_DSN when a PDO exception occurs during install. 2014-02-22 16:37:55 -05:00
jgen
ce21fcd17c Enable logging of all PostgreSQL queries. 2014-02-22 16:32:14 -05:00
jgen
8ade958dd1 Working on getting PostgreSQL to work on Travis. 2014-02-22 16:04:04 -05:00
jgen
affb44c153 Enable TravisCI for Postgres. 2014-02-22 15:51:17 -05:00
jgen
7eb2bd9112 Trimming trailing blank space. 2014-02-22 15:42:09 -05:00
jgen
3d1217a1be Trim trailing blank space. 2014-02-22 15:36:52 -05:00
jgen
96358f0bc0 Nevermind, it doesn't work. 2014-02-22 15:33:55 -05:00
jgen
2d0edde2b2 We can check that admin users see the "Add" button though. 2014-02-22 15:25:25 -05:00
jgen
d6f0213a9f Commenting out the alias tests due to consistent failing on TravisCI. 2014-02-22 15:19:06 -05:00
jgen
6efe56eddf Well, lets try this. 2014-02-22 03:10:59 -05:00
jgen
b229e114c2 Dump all the post data on failure. 2014-02-22 03:06:09 -05:00
jgen
f1aed15f32 die doesn't support commas 2014-02-22 02:59:17 -05:00
jgen
cbfc0580f6 Temporary for debugging. 2014-02-22 02:35:56 -05:00
jgen
e6057c656f Re-order the events to ensure InitExtEvent() is fired off both with and without users. 2014-02-22 01:22:14 -05:00