- 07 Feb, 2012 7 commits
-
-
Richard Mansfield authored
Adds a 'type' parameter to download.php, which, if equal to 'sitemap', will serve up a sitemap file from dataroot. The download.php links are then used in the generation of the sitemap index. Change-Id: I8b7af1a6820cf32542f3ae1bdfc8940c309939b0 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
If for some reason the sitemap generator is called twice in a day, it fails the second time while trying to overwrite the previous version. This can be fixed by removing all sitemaps for the current day before attempting to regenerate them. Change-Id: I48c3ff5c99948e4c5ab93007f068f0319dfac2f8 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
The cron process can't write to the docroot, so we'll have to write sitemaps to dataroot and make them accessible another way. Change-Id: If3b09f7322f59beed9eba1ac3d6f63c667909dfa Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
When sitemap generation is disabled, we don't need to include all the relevant libraries and log the message about disabled sitemap generation. Change-Id: I1f7e92f58dcb455bbfaab7745ce28e496ee7276b Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Although this is currently just for user searches, using the terms "Site Information" for site staff, and "Institution Information" for institution staff will allow us to add site/institution statistics under the same menu. Change-Id: I40bae94406a1a6f16b428e3821f3be1ec41ae52d Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Adds a new "User reports" page to the admin section, accessible by admins, which produces a list of all the pages owned by a given set of users, and a list of who is on the access list for each page. The users are selected using the checkboxes on the admin user search page, and the page is reachable from admin user search using a new "View reports" button on that page. The CSV download that previously appeared on the Bulk actions page is more appropriate on a reports page, so CSV download is also moved from Bulk actions to User reports. Email and remoteuser fields are only displayed to site and institution administrators. Because some sites will not want to allow staff to see the page access lists of all users in their institutions, access to this page by staff is controlled by a new "Staff report access" site setting. Change-Id: Id02b58416e3dfb28fd39c1170426ddefe6669efe Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
When you have multiple journals allowed in your account settings and then delete all journals and want to switch back to a single journal, the error message "You cannot disable multiple journals unless you only have one journal" still comes up though no journal exists. This message is confusing, it's simpler to hide the option altogether for users with no journals. Change-Id: I397422d4ad043c86621180837a16e1440b1243cd Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 06 Feb, 2012 1 commit
-
-
Richard Mansfield authored
Commit 725ba929 tries to reload certain admin-settable fields from the database into a LiveUser when committing, but fails to convert the suspended date to a timestamp when doing so. This causes the date to be displayed incorrectly to suspended users when they log in. The same problem was fixed for expiry dates in commit f7dcdf81 , bug Change-Id: I3ce83f53183cbd9003226466149f54e878749d1e Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 03 Feb, 2012 1 commit
-
-
Richard Mansfield authored
Some recent changes to the main stylesheets have resulted in themes not being correctly applied when "Small page headers" are turned on. First, the addition of a body#micro rule for background colour in the raw theme was inherited by all the child themes, when it needs to be overridden. Also, some rules were using the main-column id rather than the main-column class. Change-Id: Iea21ff4dff71ebc85a2020bca900da1e344dfa8d Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 02 Feb, 2012 2 commits
-
-
Richard Mansfield authored
In commit 93c012f2 , the forum and group name were added to the body of forum post email notifications, each wrapped in a call to clean_html (htmlpurifier). This crashes cron due to out-of-memory errors whenever there are more than a few subscribers, and stops notifications from being sent out at all. The forum and group name only need to be rendered once per forum post, so this could be fixed by moving the clean_html call up to the activity constructor, rather than doing it in the get_emailmessage, get_htmlmessage functions. These functions get called for every single subscriber notification, to ensure the string is displayed in the subscriber's language. But because group and forum names are never rendered as html, we don't need to use htmlpurifier - html escaping is more appropriate and less memory-hungry. Change-Id: I0a4133b0a11e0e0004bdab1c29984ab4fc5dfbbf Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Commit 011c5039 changed lot of thumb.php urls to use the type=profileiconbyid parameter (which takes an artefact id) rather than type=profileicon (which takes a user id, and which cannot be cached). Unfortunately, when a user has no locally stored profile icon, use of type=profileiconbyid stops their remote gravatar image from being displayed. This commit updates the thumb.php urls that were changed in commit 011c5039 to use the profile_icon_url() function, which respects remote avatars when no local profileicon is available. In some cases this requires a new size of the no_userphoto.png image, so three new sizes are added in the raw theme. The four no_userphoto images in the custom theme were duplicates of those in raw, and are removed. Finally, the type=profileiconbyid change from commit 011c5039 in the viewacl.tpl template has been reverted back to type=profileicon. Because this url is constructed in javascript, it is not worth the trouble to use a profile_icon_url call here until the number of requests to thumb.php really becomes a problem. Change-Id: I7dce7090842999fe090dc2d8c481cb4aca7720d5 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 01 Feb, 2012 4 commits
-
-
Richard Mansfield authored
Change-Id: Ic8cd74935bc836ad2615b5ef689d89a7638bb9cb Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Submission of the create group form with the 'publicly viewable group' checkbox ticked produces the error "The 'public' parameter is not an integer". This is caused by an error in the check for form submission due to a change in the form names in commit 5436cc00 . Change-Id: Idfb4b2ec10e646aa4b6ee3b517fbb13210a1ed01 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
The artefact_get_owner_info function did not set a url for site-owned artefacts. Worse, because the $url variable was sometimes left unchanged on a loop iteration, site artefacts could end up being displayed with the site name linked to an unrelated user profile page, or group homepage, for example. Change-Id: If25038e77b7019b40482bbe06ea4da70dab7a683 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
When users are automatically created from an LDAP server, the student id & display name fields are set in the user table, but not updated as profile fields in the artefact table, so they're not displayed in the Edit profile page. Passing the student id & display name from the auth plugin's get_user_info function into create_user will ensure they're set as profile fields as well. Change-Id: I3ae769394d2f65577f26759309affdfd59070302 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 31 Jan, 2012 4 commits
-
-
Richard Mansfield authored
The in-page-tabs style, used for group and profile tabs among other things, is only styled correctly when the tab contains a link. In the user reports area it's more convenient to use a button, to submit a lot of post variables, so this patch applies the same style to the existing input.linkbtn (button disguised as a link) selector. Change-Id: I14dab9618eec9197d5b14438dc8489648c26df2f Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
This allows the html to be reused on other pages Change-Id: Iad7195ff5048242515613075aa03ff5eba6a0707 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
This function, and get_views_and_collections() currently only return views and access records for a single user, group, or institution. In the admin reporting area, we want to be able to fetch access lists for several users at once. Change-Id: I0c40f7d10742efba75e44664a571e0455bcbea95 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
Staff members will be able to search through all users in their institutions, but they cannot edit a user unless they are also an administrator for them (institution or site administrator). Links from the usernames to the account settings page are only displayed when the logged-in user is an administrator for the listed user. The "edit selected users" button is only displayed to site and institutional admins, and the bulk actions page it links to now explicitly states which users have been filtered out due to lack of institutional admin privileges. Email addresses are removed from the list for staff users. If the logged-in user is an admin in one institution, and staff in another, email is displayed and usernames linked only for the 'adminned' users. The bulk actions page is still reachable, but any selected users who are not adminned by the logged-in user will be removed. Change-Id: Ia65a960df9af7c5794002007e7580ba5f9a4c9d7 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 30 Jan, 2012 7 commits
-
-
Rich Trott authored
Change-Id: I660fe25d3d9c08bf44dab0dd9a84410083666909 Signed-off-by:
Rich Trott <rtrott@gmail.com>
-
Francois Marier authored
Change-Id: I6521e8c1aedf5f74de648b0732cc43ea9dae28ae Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
Francois Marier authored
This makes upgrading the jQuery version more tedious than it really has to be. Change-Id: I6dec636cffabdba9755dd418b3fb2ad5449e5011 Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
Francois Marier authored
We should try not to bundle "compiled" and source versions of third-party code. In this case, minification should be done on all Javascript in Mahara and then cached. jQuery is far from being the only JS file that would benefit from being compressed. Change-Id: I65d5b63fc80258bfa4e80ca6fb0578870e61664a Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
Francois Marier authored
The pager causes elements to change and be displayed again so the skinning performed by jquery.rating when first loaded needs to happen everytime the page changes. (cherry picked from commit 0f0a4513 ) Signed-off-by:
Francois Marier <francois@catalyst.net.nz> Change-Id: I1c95cb9b95a4d52790d0456f96479e71a3a66c32
-
Francois Marier authored
Not advertised yet on the homepage (http://www.fyneworks.com/jquery/star-rating/), but available from Google Code (http://code.google.com/p/jquery-star-rating-plugin/): http://jquery-star-rating-plugin.googlecode.com/svn/trunk/star-rating.zip Change-Id: Idb39d31516d2e1dd4b3e3984afd43a81c4c39a71 Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
Francois Marier authored
We should document where this comes from. Change-Id: I61daf1c536d5038b36db97bcfe664a4b0576b310 Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
- 27 Jan, 2012 1 commit
-
-
Francois Marier authored
Change-Id: Idd543e03aec6ee76ba34c5f66b0924a3bc3b3482 Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
- 26 Jan, 2012 4 commits
-
-
Francois Marier authored
Change-Id: Ib1bf2b37c73b948059c999f26b2bab556163170b Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
Hugh Davenport authored
Bug #911538 Change-Id: I10cfdb5f08e1e04f0e76b37d5937eed0a123a092 Signed-off-by:
Hugh Davenport <hugh@catalyst.net.nz>
-
Iñaki Arenaza authored
When we added the ability to map Student ID and Display from a LDAP server, we completely forgot that the Student ID can be specific for the institution. In fact, if we don't store the Student ID in usr_institution we are not able to search for the user in the institution users page using the Studend ID. Full credit goes to Patrick Pollet for discovering the bug and proposing a fix for it. Change-Id: I545bbcb5addf837364ed1178be340d170d4114e3 Signed-off-by:
Iñaki Arenaza <iarenaza@mondragon.edu>
-
Francois Marier authored
Bug 920183 I also replaced the deprecated "getVerifiedEmail()" function with the new name for it: get() Change-Id: I1488a17a34d62554967e7907b130ba180d89e40b Signed-off-by:
Francois Marier <francois@catalyst.net.nz>
-
- 25 Jan, 2012 1 commit
-
-
Evonne Cheung authored
These images include replacements for all the previously untranslatable blocktype icons, homepage info graphics, and the add/remove column buttons. Change-Id: I02bde970a616782b2a97335f7876fe43a6cb0815 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 22 Jan, 2012 1 commit
-
-
Andrew Robert Nicols authored
This is bug #920141 Change-Id: I2f98658965ebfa1937894ffdae9443404417b258 Signed-off-by:
Andrew Robert Nicols <andrew.nicols@luns.net.uk>
-
- 19 Jan, 2012 2 commits
-
-
Jono Mingard authored
Changed string 'noblogfound' to 'nodefaultblogfound' to add link '<a href="%saccount/">account settings</a>' Changed htdocs/artefact/blog/view/index.php to use 'die_info' instead of 'ArtefactNotFoundException' so that the account settings link is not escaped Change-Id: I517aeabba59373ccb19a1cd618a988af689ce0f2 Signed-off-by:
Jono Mingard <reason.koan@gmail.com>
-
Jono Mingard authored
When editing a file the text "Enter comma separated tags for this item. Items tagged with 'profile' are displayed in your sidebar." now displays under the tag textbox. Added a new table row with the language string 'tagsdescprofile' to artefact/file/theme/raw/form/editfile.tpl Change-Id: I2d3a0f92f989fca2bb990c9888a79ce090342cb3 Signed-off-by:
Jono Mingard <reason.koan@gmail.com>
-
- 17 Jan, 2012 1 commit
-
-
Richard Mansfield authored
When you delete an institution, and one of the institution's authinstances is still in use by some users, you get an sql error and a nonrecoverable error screen. (This can only happen when the users still using the authinstance are not institution members, because there is already a check to stop deletion of institutions with members). This patch allows the institution to be deleted anyway, reassigning the offending users to a 'default' authinstance. If we can't find a sensible default authinstance, it will at least display a more helpful error message. Also, when attempting to delete an institution with members, set an error on the form rather than throwing a ConfigException. Change-Id: I9c85a3c8c80411e3cf526767b9142efb12907e5c Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
- 16 Jan, 2012 4 commits
-
-
Richard Mansfield authored
To allow for pages that are accessible by both admins and staff, two new constants are added, STAFF and INSTITUTIONALSTAFF. The existing checks for admin and institutional admin permissions are moved into a new function which also takes account of the new staff permissions. Change-Id: I60de6f74bd5f2a208be8e15e8a71f16b689c80d6 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
This can help to reduce the overall number of requests for thumb.php because the 'profileiconbyid' urls are cached for longer by the browser. (Where the profile_icon_url function can be used, we also avoid the need to generate additional requests for users without profileicons, when remote avatars are disabled. But because profile_icon_url relies on the nouserphoto icon being available in the requested size, we can't use it everywhere until we either generate the nouserphoto icon in more sizes, or change all those pages to use standard sizes.) Change-Id: I81c5c5f4b7f9136bf9b6a6f711e55a4bceb6fa14 Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
On the admin notifications page, and in the wall and recent forum posts blocks, we are fetching user information from the database and then subsequently generating new requests for their profile icons. By fetching the profileicon and email address along with the rest of the user information, we will be able to avoid the need for these additional requests in many cases. Change-Id: I82cbf378ace2e663d0958529aeb2f3b123364caa Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-
Richard Mansfield authored
When a user is deleted, deletion of notification_internal_activity records can fail with a foreign key error when another row in notification_internal_activity has a parent field pointing to one of the records we are trying to delete. This is fixed by setting the parent fields to null before deletion. The handle_event('deleteuser') call in delete_user is also moved inside the transaction, to ensure that deleted users will have their notifications deleted correctly. Other subscribers to the deleteuser event in core should be unaffected. Change-Id: Ibc0a695e986bb175a00441f02d3e40abf38cbcde Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
-