1. 15 Nov, 2011 1 commit
  2. 24 Aug, 2011 2 commits
  3. 13 May, 2011 1 commit
  4. 23 Feb, 2011 1 commit
  5. 01 Oct, 2010 1 commit
  6. 14 Jan, 2010 1 commit
  7. 01 Dec, 2009 1 commit
  8. 22 Oct, 2009 1 commit
  9. 03 Sep, 2009 1 commit
  10. 21 Apr, 2009 1 commit
  11. 14 Apr, 2009 1 commit
  12. 22 Jan, 2009 1 commit
  13. 15 Jan, 2009 1 commit
  14. 05 Jan, 2009 1 commit
  15. 13 Oct, 2008 2 commits
  16. 30 Sep, 2008 1 commit
  17. 21 Sep, 2008 1 commit
  18. 15 Sep, 2008 1 commit
    • Penny Leach's avatar
      More work on profile views and three new blocktypes... · 8465aa3f
      Penny Leach authored
      More work on profile views and three new blocktypes (myfriends/mygroups/myviews) to emulate current profile page TODO: - write wall blocktype - change install default profile view hook to add blocks - upgrade path (xmldb & migration) - blocktype and category and singleblockperview implementation
      
          - TESTING
      8465aa3f
  19. 18 Jun, 2008 1 commit
  20. 18 Mar, 2008 1 commit
    • Nigel McNie's avatar
      Make db_format_timestamp return null for any value that is 'empty'. · d6596676
      Nigel McNie authored
      Otherwise, $db->BindTimestamp() will return the string 'null' for 0 and '0', which no code in Mahara is expecting.
      
      Noticed as part of the previous commit, where $user->lastlogin defaulted to 0 (which was incorrect), and which db_format_timestamp was converting to 'null'.
      d6596676
  21. 20 Feb, 2008 1 commit
    • Nigel McNie's avatar
      Work around a bug in insert_record, where the table columns were cached for a... · e1c17aea
      Nigel McNie authored
      Work around a bug in insert_record, where the table columns were cached for a table the first time the table was inserted into, making it impossible to do inserts into the table in the same request if the table is changed.
      
      Added a global variable, $INSERTRECORD_NOCACHE, that can be set in order to force re-looking up the table columns.
      
      Use this feature to fix the installation of the forum interaction activity type "new post" when upgrading.
      e1c17aea
  22. 16 Feb, 2008 1 commit
  23. 12 Feb, 2008 1 commit
  24. 07 Dec, 2007 1 commit
    • Nigel McNie's avatar
      Make admin users/staff users scripts show all users rather than just users... · b1a4173f
      Nigel McNie authored
      Make admin users/staff users scripts show all users rather than just users that would be returned by standard search. Fxies #1756.
      
      This is actually quite a large patch, which does the following:
      
       * adds a db_ilike() method, which returns the correct keyword (LIKE or ILIKE) to do case insensitive searching.
       * Switches the templates used for the admin user search for strings, rather than using files. This prevents problems when the theme is not the default and the templates are not there.
       * Implements admin_search_user in the internal search plugin for MySQL as well as postgres, without needing two separate methods since the query works on both.
       * Make the userlist element use the new json/adminusersearch.php script, which performs an admin user search.
      
      One happy upside is that the admin user search screen now works in MySQL.
      b1a4173f
  25. 04 Dec, 2007 1 commit
  26. 03 Dec, 2007 1 commit
  27. 22 Nov, 2007 1 commit
  28. 20 Nov, 2007 1 commit
  29. 19 Nov, 2007 1 commit
    • Nigel McNie's avatar
      Implement transaction level counting for db_begin() and friends. · 9578988e
      Nigel McNie authored
      This means that we can safely call db_begin() and db_commit() anywhere, and as long as the calls balance, the transaction will only be committed when the last one is committed.
      
      If a rollback is asked for at any time, the entire transaction is rolled back.
      9578988e
  30. 06 Nov, 2007 1 commit
  31. 04 Nov, 2007 1 commit
    • Nigel McNie's avatar
      Added a new function, insert_record_if_not_exists. · 14496c8c
      Nigel McNie authored
      This uses the postgres SELECT FOR UPDATE syntax to ensure we don't have a race condition when inserting a record that previously didn't exist. The other database one is a bit more race condition-ey.
      14496c8c
  32. 25 Oct, 2007 1 commit
  33. 24 Oct, 2007 1 commit
  34. 16 Oct, 2007 3 commits
  35. 22 Aug, 2007 1 commit
  36. 17 Aug, 2007 1 commit
    • Nigel McNie's avatar
      Change to how table names are specified in SQL queries. · 250cf34d
      Nigel McNie authored
      Now, table names (and other identifiers that could be confused with SQL kewords), should be put into SQL like this:
      
      SELECT * FROM {artefact}
      
      The braces are matched and expanded by DML now to include the prefix and be properly quoted, which means that tables like 'view' and 'group' don't need renaming (and nor should they, there's little reason why we should rename tables to get around such constraints).
      
      This has removed a whole bunch of $prefix = ... and get_config('dbprefix') stuff, which makes things a little simpler yet again.
      250cf34d