Update the urlid of a copied page (Bug 1058416)

Change-Id: Ic554b94fa20f5978108b0c828c70834246c9c9c9
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Error message fading too fast to read (bug 1246024)

The message was being removed due to the changes in this bug:
https://bugs.launchpad.net/mahara/+bug/1081309

Where the new message was been included in the cleanup of
old messages.

To test: add a creative commons block to page
- then try and add another. you will get the error message at top that
quickly fades away

With patch: the message should stay until you try to add block for
third time and the earlier message fades away

Change-Id: I298ba76d5f9696b3881d15868518f401236ac422
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Reset the offset value when changing the page size (Bug 1053708)

in the paginator

Change-Id: I362704b27761c334be712a32f3b3e5f73c3b3b37
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Merge "Update the urlid of a copied page (Bug 1058416)" into 1.7_STABLE
Allowing non-institution site admins to publish (bug #1255361)

Currently, if a site admin tries to edit an institution page and
attach a file to a block (eg image block) and they don't belong to
that institution, the process fails.

Have altered the can_publish_artefact() to allow those that can edit
institutions to be allowed to also publish.

Change-Id: I05a2160e84814add067019e4bde654a6ebd561b1
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Be honest about the forum post delay's current value

Bug 996337: We always treat it as an integer, so it makes the most sense
to just show the user this config's integer value.

Change-Id: Ia4b198b0f642b94e36995f91a5826125bd64434e
Set the new install default forum post delay to 30 minutes

Bug 996337

Change-Id: I9a6f5b94fb05511ef0497a60fb133a390f3db46e
Writing a helpfile for "generate sitemap"

Bug 974855: It's not great that the helpfile doesn't actually contain the URL for your sitemap,
but we'd need to implement the ability to put parameters or variables into help files to make that happen.

Change-Id: I7cc414510ffe78432a4e21d61a829f67ff1d9929
Checking for $user->urlid before trying to access it (bug #1253462)

In some cases the $user->urlid may not be present - this checks for it
before accessing it otherwise it falls back to the $id to get info

Change-Id: I989e68321402f458b167879e994150213c3e4893
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Allowing form error string to be unescaped (bug #1203082)

As the string is hardcoded in lang file and does NOT take any variables
it is ok to pass into form error as unescaped.

Change-Id: Ibc0b9d7ed872abb7c4ba77d3d2bb5abcde110abc
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Removing superflous fullstop from group/uploadcsv.php (bug #1195120)

Change-Id: I080a3f5bc7f8ac193da467d6082e542bee45b396
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Merge "Checking for $user->urlid before trying to access it (bug #1253462)" into 1.7_STABLE
Merge "Allowing form error string to be unescaped (bug #1203082)" into 1.7_STABLE
Override MySQL's check for accidental large queries

Bug 1070046: MySQL has an optional server config option, "MAX_JOIN_SIZE",
which throws an error if you try to run a SQL query that MySQL's strategizer
thinks will require it to evaluate more than MAX_JOIN_SIZE rows. This is
intended to prevent the user from accidentally running giant queries that
will never finish, but some Mahara queries (which are large but will finish)
can trip it. Adding SQL_BIG_SELECTS=1 tels it that our queries are *not*
accidentally large.

Also has order change for bug 1184450

Change-Id: I6db4699ea765d3213d13eb93b8de098914db24e0
Fixing instructions to have the correct name of the "Add task" button

Bug #1259377

Change-Id: Ibf89c33ba1e7d858be0107fc9438b2d35785becc
Signed-off-by: Piper Biswell <piperbiswell.student@wegc.school.nz>
Updating HTMLPurifier to version 4.6.0 (Bug #1266976)

Change-Id: I1a6145ca25ecde56c83f2540d04874e973e926f6
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Merge "Override MySQL's check for accidental large queries" into 1.7_STABLE
Fix the watched group/institution page errors (Bug #1099811)

Get the correct owner info of a watched view in cases of group or
institution pages

Change-Id: I144f969a1cbe464892cc20a33fa6336928373278
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Add a new embed source for viewing google files (Bug 1287350)

The format of a share link for a google file:
https://drive.google.com/file/d/<FILE_ID>/<action>?usp=sharing

Change-Id: I420ac6ade6eb3e9e31f5418c83d584e6cb07c23a
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Allow the feeds with lastupdate = null to update also (#Bug 1284878)

Due to bug introduced in commit 70f75a2d75af47aa11aa93ee5b587d41caf957e9

Change-Id: I2249bf1ba8a03092b3ea0b89b6845b048794049b
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>