Change json_headers to use application/json (Bug #1031560)

Change-Id: I4be9af5259346fbc5d00f38f6e85fefeb24a15e2
Signed-off-by: Alan McNatty <alan@catalyst.net.nz>
Redirect to /artefact/file/ when click Cancel (bug #1052429)

In non-js web browser, the pieform of filebrowser will be submitted when
click 'Cancel' button. Handle this action by redirect to
/artefact/file/index.php

Change-Id: If32385105f8c705be08ae70fa00bc9583f0227a1
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Bug 1073136 another fix for forum sorting

Fix ordering of forums when there are more than 10 forums

ANSI SQL function CHAR_LENGTH (works on postgresql and mysql)
is used to help sort the forums in the correct order.  Without this,
if you have 11 forums, the 'order by' using the varchar weight value
results in them being ordered 0, 1, 10, 2, 3, ....

Apparently there is no my- and postgresql compatible syntax to cast
strings to integers, so this patch orders first by string length, then
by string value of the column storing the weight of the forum.

Change-Id: I715f52d097189b9d3988339984220185cc1d6498
Signed-off-by: Brian King <brian@liip.ch>
interaction/forum/view.php: Include sticky topics in the number of topics

Bug #1056544

Change-Id: Iaf0a3de0c4f725de0e92ae2b7af04fc09b8faf37
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Show "Copying is allowed" on the institution and site access list

Bug #1069274

Change-Id: I89adc3478221edb5b507576a635d07af1e94f979
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Fix a warning when updating users via CSV (Bug #1068952)

Some missing fields in CSV file for updating users causes this
warning:

1. firstname
2. lastname
3. password
4. email
5. username

Change-Id: Ie26a5c53c6af94c3c18d399bf2170caf63053f70
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Add check for braces in table name to minaccept

Bug #959926

Change-Id: Ie10f575e3ab1bc186bd5cad06b62dbb4af74d503
Signed-off-by: Hugh Davenport <hugh@catalyst.net.nz>
Bug #1091504: Fix MENUITEM for suspended users page

Change-Id: Ie577542804d05512b7846cd265b72dae592b30a7
Signed-off-by: Hugh Davenport <hugh@catalyst.net.nz>
Allow sideblocks on the "Allowed iframe sources" page

Bug #1091506

Change-Id: Idbbf3d2a8911578754bea20b24602eb63ce8cb3d
Signed-off-by: Hugh Davenport <hugh@catalyst.net.nz>
Refactor pagination url params for consistency purposes (bug #1090203)

Also ensure that nothing is added if params array is empty

Change-Id: Iebf5711e0defe79c92907f56e7936a721c18e94d
Signed-off-by: Ruslan Kabalin <r.kabalin@lancaster.ac.uk>
Fix the problem of searching for the string: '0' (Bug #1095834)

Wrong use of the empty() function causes this problem.
 - !empty($query) must be replaced by isset($query) && ($query != '')
 - !empty($values['query']) replaced by isset($values['query']) &&
($values['query'] != '')

Change-Id: I5dee9187f48fa3b3f1eeddd23bf29413bb6433c8
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Upgrade TinyMCE to 3.5.8 (Bug #1040337)

and
 - config spellchecker
 - rename the conflict error() to mce_error()

Change-Id: Ia763a6e7bb0ba82f5eca95b8650d73c5782eb118
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Fix warnings when clicking spell checker button (Bug #1051529)

Change-Id: I4143374a28f8342df9e2646b3c14cc1b252bc015
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Bug 892959: Add missing apostrophe

for "group's disk quota"

Change-Id: Ia940c845cca02df637d11f02ff9818054ec47eae
Signed-off-by: Kristina D.C. Hoeppner <kristina@catalyst.net.nz>
Update the grouproles of an user right after joining a group

Bug #1046641

Change-Id: I22a3d80a18003957f2f92ad5599a01688dd68f43
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Update the user's grouproles after leaving a group (Bug #1046647)

Change-Id: Ic6de2fb3aff3f0599525c12e4218b1e2026c8391
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Bug #1132370 Remove create_function() from dml.php to save memory

Functions created by create_function() don't ever get deallocated,
which contributes to scripts running out of memory.

Change-Id: Ifd78bf05bab67a9b1593a7d9722dd2433e7ad7ca
Signed-off-by: Aaron Wells <aaronw@catalyst.net.nz>
Merge "Update the user's grouproles after leaving a group (Bug #1046647)"
Merge "Update the grouproles of an user right after joining a group"
Merge "Bug #1132370 Remove create_function() from dml.php to save memory"