1. 15 Dec, 2009 2 commits
    • Andrew Robert Nicols's avatar
      Prioritisation of per-institution themes · c340aa22
      Andrew Robert Nicols authored
      
      
      If a user is a member of multiple institutions, they would have typically
      received the theme for the last institution (as returned in an unsorted
      order from lib/user.php->load_user_institutions).
      
      This patch introduces a check to determine the user's authentication
      instance and the institution associated with that instance.
      If a theme is set for that institution, this is used in priority.
      Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
      c340aa22
    • Andrew Robert Nicols's avatar
      Improvements to per-institution theme selection · 01c43b82
      Andrew Robert Nicols authored
      To allow an institution to have multiple themes available to it, this
      change introduces a check on an optional theme parameter
      $theme->institution. Only themes where $theme->institution matches the name
      of the institution given, or where the value is not set are returned.
      
      This change allows for multiple themes to be made available to an
      institution.
      
      The following behaviours should be seen:
      * admin/users/institutions.php now only shows themes which are sitewide, or
        intended for the specified institution;
      * admin/site/options.php shows all themes on the system (not just sitewide
        themes); and
      * view/blocks.php lists all themes for all institutions a user belongs to,
        plus sitewide themes. This changes the behaviour introduced in
        4e0132ac
      
       which restricted available view
        themes to the currently set themes of each institution. However, I feel
        that this change offers more possibilities as institutions will be able
        to have a series of themes available for views; in addition to their
        primary Mahara theme.
      Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
      01c43b82
  2. 14 Dec, 2009 4 commits
  3. 11 Dec, 2009 2 commits
  4. 10 Dec, 2009 7 commits
  5. 09 Dec, 2009 3 commits
  6. 08 Dec, 2009 5 commits
  7. 07 Dec, 2009 3 commits
  8. 03 Dec, 2009 2 commits
  9. 02 Dec, 2009 8 commits
  10. 01 Dec, 2009 4 commits