We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

  1. 29 Oct, 2013 1 commit
  2. 18 Aug, 2013 2 commits
    • mattl's avatar
      pkeyGet is now static and more similar to getKV · 861e838a
      mattl authored
      Memcached_DataObject now defines
         * pkeyGetClass to avoid collision with Managed_DataObject pkeyGet
         * getClassKV to avoid collision with Managed_DataObject getKV
      861e838a
    • mattl's avatar
      The overloaded DB_DataObject function staticGet is now called getKV · 2a4dc77a
      mattl authored
      I used this hacky sed-command (run it from your GNU Social root, or change the first grep's path to where it actually lies) to do a rough fix on all ::staticGet calls and rename them to ::getKV
      
         sed -i -s -e '/DataObject::staticGet/I!s/::staticGet/::getKV/Ig' $(grep -R ::staticGet `pwd`/* | grep -v -e '^extlib' | grep -v DataObject:: |grep -v "function staticGet"|cut -d: -f1 |sort |uniq)
      
      If you're applying this, remember to change the Managed_DataObject and Memcached_DataObject function definitions of staticGet to getKV!
      
      This might of course take some getting used to, or modification fo StatusNet plugins, but the result is that all the static calls (to staticGet) are now properly made without breaking PHP Strict Standards. Standards are there to be followed (and they caused some very bad confusion when used with get_called_class)
      
      Reasonably any plugin or code that tests for the definition of 'GNUSOCIAL' or similar will take this cha...
      2a4dc77a
  3. 12 Aug, 2013 1 commit
    • mattl's avatar
      staticGet for sub-Managed_DataObject classes now calls parent · 1a9a8ea7
      mattl authored
      The parent class for our database objects, Managed_DataObject, has a
      dynamically assigned class in staticGet which objects get put into,
      leaving us with less code to do the same thing.
      
      We will probably have to move away from the DB_DataObject 'staticGet'
      call as it is nowadays deprecated.
      1a9a8ea7
  4. 24 May, 2013 2 commits
  5. 20 Oct, 2011 1 commit
    • Evan Prodromou's avatar
      Squashed commit of the following: · 22fead1b
      Evan Prodromou authored
      commit fb1dfa9e98ded23fb5bdebae6465424a8cb8acd6
      Author: Evan Prodromou <evan@status.net>
      Date:   Thu Oct 20 10:40:07 2011 -0400
      
          Use popular notice stream for favorited page
      
      commit e1d409ff738e39061ad35589d546ce9bed456975
      Author: Evan Prodromou <evan@status.net>
      Date:   Thu Oct 20 10:32:23 2011 -0400
      
          Use a caching stream for popular notice section
      
          Instead of a big cached query, we now use a caching notice stream for
          the popular notice section. It uses a single-table query at the
          bottom, then scopes the notices and filters for silenced users. This
          should be much nicer to our database servers.
      
          Also clears the popular cache when someone favors or disfavors
          something. A nice optimization would be to save the last weights and
          re-calculate them at invalidation time, adding the new notice (or not)
          depending on its own score. That will have to wait for another day,
          though.
      
      commit e9b7ab4c26c95e755adaff53c3957dcfca31c16b
      Author: Eva...
      22fead1b
  6. 22 Aug, 2011 2 commits
  7. 08 Aug, 2011 1 commit
    • Evan Prodromou's avatar
      Store pkeys in cache for listGet() · ed31052d
      Evan Prodromou authored
      I was storing the full objects in the cache for the listGet()
      function. I've changed it to store only pkeys, and use pivotGet() to
      get all the corresponding values.
      
      This also required changing pivotGet() so it can get objects with
      multi-column pkeys, which complicated the whole thing quite a bit. But
      it seems to work OK.
      ed31052d
  8. 03 Aug, 2011 1 commit
  9. 24 Mar, 2011 1 commit
  10. 23 Mar, 2011 2 commits
  11. 18 Mar, 2011 2 commits
  12. 17 Dec, 2010 1 commit
  13. 12 Dec, 2010 1 commit
  14. 10 Dec, 2010 1 commit
  15. 04 Oct, 2010 1 commit
  16. 28 Sep, 2010 1 commit
  17. 13 Sep, 2010 2 commits
  18. 05 May, 2010 1 commit
  19. 23 Mar, 2010 2 commits
  20. 02 Mar, 2010 1 commit
  21. 20 Feb, 2010 1 commit
  22. 06 Jan, 2010 1 commit
  23. 23 Jul, 2009 1 commit
  24. 15 Jul, 2009 1 commit
  25. 05 Jul, 2009 1 commit
  26. 23 Jun, 2009 1 commit
  27. 29 May, 2009 2 commits
  28. 01 May, 2009 1 commit
  29. 23 Dec, 2008 3 commits
    • Evan Prodromou's avatar
      change function headers to K&R style · 04ef1ba8
      Evan Prodromou authored
      Another huge change, for PEAR code standards compliance. Function
      headers have to be in K&R style (opening brace on its own line),
      instead of having the opening brace on the same line as the function
      and parameters. So, a little perl magic found all the function
      definitions and move the opening brace to the next line (properly
      indented... usually).
      
      darcs-hash:20081223193323-84dde-a28e36ecc66672c783c2842d12fc11043c13ab28.gz
      04ef1ba8
    • Evan Prodromou's avatar
      replace NULL with null · eb2f9c98
      Evan Prodromou authored
      Another global search-and-replace update. Here, I've replaced the PHP
      keyword 'NULL' with its lowercase version. This is another PEAR code
      standards change.
      
      darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
      eb2f9c98
    • Evan Prodromou's avatar
      replace all tabs with four spaces · edbc0c66
      Evan Prodromou authored
      The PEAR coding standards decree: no tabs, but indent by four spaces.
      I've done a global search-and-replace on all tabs, replacing them by
      four spaces. This is a huge change, but it will go a long way to
      getting us towards phpcs-compliance. And that means better code
      readability, and that means more participation.
      
      darcs-hash:20081223191907-84dde-21e8efe210e6d5d54e935a22d0cee5c7bbfc007d.gz
      edbc0c66
  30. 02 Oct, 2008 1 commit