- 16 Mar, 2012 1 commit
-
-
Christopher Tombleson authored
PHP 5.4 doesnt like creating objects on the fly. Change-Id: Ia2ba74bcf454d58e7b526fa0c1aff64f2ad71f59 Signed-off-by:
Christopher Tombleson <christopher@catalyst.net.nz>
-
- 15 Jan, 2012 2 commits
-
-
Richard Mansfield authored
Audio and video artefacts are created according to the mimetype claimed by the browser: no checking is currently performed on the file's content. This doesn't really matter because these artefact types are only used to display special audio/video icons in the files area, but we may want to use them for other purposes later. Until we can ensure these files are valid, and that Mahara can play them, we should at least use the slightly more accurate detection provided by file_mime_type. This patch also renames the new_<artefacttype> artefact type detection functions so that they are consistent for audio, video, and archive artefacts. It also removes the unnecessary archive_from_file() function in the archive class, combining it into the detection function. Change-Id: I6ec5ae0c18a3fae4c6cdb609097173432ca0c57f Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
When a new file artefact is created from a file that wasn't uploaded by a browser, the filetype property is not always set. This causes warnings when extracting files from archives. Moving the call to file_mime_type right before construction of the new artefact type fixes the problem and allows us to remove some other calls to file_mime_type during import and upload. Change-Id: I8e644bfc1e6bc0fbaa90f1e6637288997b0d028c Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 10 Jan, 2012 1 commit
-
-
Richard Mansfield authored
When updating the progress bar during unzip, call_user_func_array was being passed an integer instead of an array, which causes warnings and fails to update the progress bar in PHP 5.3. Change-Id: I59646f1e0734602885e3836edb2bcba4a9a1970c Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 12 Dec, 2011 1 commit
-
-
Richard Mansfield authored
Minor changes to several strings in the default language pack to use plural forms. This commit is intended as an example to demonstrate the use of plural forms. Change-Id: I425fbdaa10496c747b415e07e18aeb23736967b8 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 21 Sep, 2011 1 commit
-
-
Melissa Draper authored
The individual quota check was including the video and audio types but the group quota wasn't. This wasn't ideal. The quota checks now use the PluginArtefactFile::get_artefact_types() method to make sure this doesn't happen so easily in the future. Change-Id: If926233f80479f7031d1e0cac64dff7c316fa273 Signed-off-by:
Melissa Draper <melissa@catalyst.net.nz>
-
- 12 Sep, 2011 1 commit
-
-
Richard Mansfield authored
Commit d6446942 created a new audio file type with a list of indexes into the mimetype table for audio mimetypes. However, the numeric keys of the 'descriptions' array were being used to fetch audio mimetpes instead of the values, which resulted in files with undetected 'application/octet-stream' mimetypes becoming audio artefacts after upload. Change-Id: I418fc8b864088269fcddcffcb56346e8f9bb78ee Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 30 Aug, 2011 1 commit
-
-
Hugh Davenport authored
This patch adds support for multiple file uploading added in HTML5 specs. It allows the user to select multiple files when the file dialog box comes up asking for a file to upload. Change-Id: If8a3e26be29570b7366008c2675fc5539c7e8874 Signed-off-by: Francois Marier<francois@catalyst.net.nz> Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
- 22 Aug, 2011 1 commit
-
-
Stacey Walker authored
Change-Id: Ia6df631512795b68e1eba7906220803ca3a7f500 Signed-off-by:
Stacey Walker <stacey@catalyst-eu.net>
-
- 19 Aug, 2011 1 commit
-
-
Hugh Davenport authored
If a file is in the groups area that doesn't have member access then the group member that initially uploaded it can't view it This patch allows the author (uploader) of a file to still have access no matter what the access is set to for the group role they belong to Bug #812673 Change-Id: I1d5bbccb41d34af15617ac5abc673b1265ac9f3e Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
- 16 Aug, 2011 1 commit
-
-
Richard Mansfield authored
Adds an additional checkbox to the default quota settings for users, groups, and institution members, which will apply the default quota to existing users/groups. Change-Id: I811bfc9902c4adb62615ea8364473174d714ddb1 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 03 Aug, 2011 1 commit
-
-
Richard Mansfield authored
Files copied during view copying were not dealt with correctly when more than one view was being copied in a single request. The copying process automatically creates a folder in which to put any files it needs to copy, but the id of this folder was declared as static, so it didn't work once copying of multiple views is allowed. There is a similar problem for blogs created during view copies (to hold copied blogposts). I'm not sure if there's a way to copy multiple views containing blogposts that need copying (it can't happen in institution views). But the default blog creation function is updated in this patch anyway. Change-Id: Id8ea2504772f49ce8f301cfc19d41ba20b587e9d Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 02 Aug, 2011 2 commits
-
-
Hugh Davenport authored
Change-Id: I544009df48c0059c35c8630c84111f1fb9b90490 Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
Hugh Davenport authored
Add a recalculate_group_quota function in the same way existing quotas do it This allows other plugins to add to the quota as well. Change-Id: I781c1c421ae13fb0950b29d7beec86d256c24d86 Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
- 29 Jul, 2011 2 commits
-
-
Hugh Davenport authored
Issues were: - extracting archives went to user quota (this was same as institution files) -- fixed with institution files as well - deleting folders didn't change the group quota Issues still there: - extract.php doesn't show group quota in side bar - extract.php doesn't check if quota will be exceeded Change-Id: Id07091f66f4c42c94b442bd3232072a1c98e1b5c Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
Richard Mansfield authored
Users cannot upload profileicons if they happen to have two images folders in their home folder. This changes the get_folder_by_name function to use get_records_sql_array rather than get_record_sql, as is done in the search for the admin public folder. Change-Id: Iee83c32008d536aa4e7afdfc65e585a8a264cf87 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 15 Jul, 2011 1 commit
-
-
Eugene Venter authored
bug #605747 and bug #806501 When a user uploads a new profile icon, it now gets added to the "images" folder in their files area. Profile icons are emphasised and descriptions aren't editable. Warning notifications, when deleting a default profile icon or when deleting a folder containing profile icons, are implemented. Signed-off-by:
Eugene Venter <eugene@catalyst.net.nz> Change-Id: I3f8c93c4b65814aa183f0eaa8e1739e750c87905
-
- 14 Jul, 2011 1 commit
-
-
Richard Mansfield authored
Commit 0c9774b9 added a foreign key constraint on the profile icon field of the user table. But when a profile icon is deleted, this field isn't updated in the global $USER object, unless the icon is deleted from the profile icons page, so the bad profileicon can hang around in the session, and then cause an sql error the next time the usr table is updated from $USER. This change will fix that problem when a user deletes their own profile icon, however it may still be possible for the error to occur if for example the user is logged in twice. Change-Id: I2f8792fcd392be351b8ee9ac77337fd41b046a3d Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 01 Jun, 2011 2 commits
-
-
Hugh Davenport authored
Change-Id: Id4880764ab395ea56395a57f52258968097bb02b Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
Hugh Davenport authored
Also add in default quota for each institution Change-Id: Ibfdd5a10990e9c6a936b9ad5921f734df1f5c805 Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
- 26 May, 2011 1 commit
-
-
Hugh Davenport authored
Bug #786783 Change-Id: Iae7e03e15caf0bd9ac8cfa5f6c7174878abfb7a3 Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
- 25 May, 2011 1 commit
-
-
Richard Mansfield authored
This will be useful when we introduce more file artefact types such as audio and video files, each of which will need to have its mimetype checked on every file upload. Change-Id: I7b5aa141687d2093d1b55f96f10c80167f37133a Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 24 May, 2011 1 commit
-
-
Hugh Davenport authored
Bug #785011 Change-Id: Ia1b03ae04fa5f5049630eda65fcc73ee539dcd77 Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
- 16 May, 2011 1 commit
-
-
Hugh Davenport authored
Bug #783208 Change-Id: Id52cb248adbf1cdb6b6841f8c16dd102bed11cc6 Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
- 13 May, 2011 1 commit
-
-
Francois Marier authored
These closing tags are unnecessary and against our coding guidelines. Let's get rid of them all in one go. Change-Id: Ia94f103e525185597ee3780a3839d7577cdd0c29 Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
- 20 Apr, 2011 2 commits
-
-
Richard Mansfield authored
Reduce log noise from html filter & mime type messages Change-Id: I58c7abd79b9db737cff95f8eeb10c36d691d8860 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Darryl Hamilton authored
Change-Id: Ic1db3529aa7d03aeecd4e1b3a59365221e8e1a8d Signed-off-by:
Darryl Hamilton <darrylh@catalyst.net.nz>
-
- 12 Apr, 2011 1 commit
-
-
Richard Mansfield authored
Change-Id: I238b56d3030b830c835fc8393f180b79ddafcb63 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 27 Jan, 2011 1 commit
-
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 12 Jan, 2011 1 commit
-
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 23 Dec, 2010 2 commits
-
-
Evonne Cheung authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 22 Dec, 2010 4 commits
-
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 21 Dec, 2010 1 commit
-
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 18 Oct, 2010 1 commit
-
-
Richard Mansfield authored
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 13 Sep, 2010 2 commits
-
-
Ruslan Kabalin authored
Signed-off-by:
Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
-
Richard Mansfield authored
Save custom upload agreement when there is no 'uploadcopyright' record in the site_content table (bug #635828); run clean_html over upload agreement. Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-