git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

  1. 18 Aug, 2013 1 commit
    • mmn's avatar
      The overloaded DB_DataObject function staticGet is now called getKV · 2a4dc77a
      mmn 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 change into consideration.
      2a4dc77a
  2. 12 Aug, 2013 1 commit
    • mmn's avatar
      staticGet for sub-Managed_DataObject classes now calls parent · 1a9a8ea7
      mmn 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
  3. 22 Aug, 2011 1 commit
  4. 31 Jan, 2011 1 commit
  5. 27 Jan, 2011 2 commits
    • Brion Vibber's avatar
      Session GC fix: save session.modified field as UTC so our comparisons work. · a7abb232
      Brion Vibber authored
      Had to tweak statusnet.ini to remove the DB_DATAOBJECT_MYSQLTIMESTAMP bitfield constant on session.modified; while it sounds like a useful and legit setting, it actually just means that DB_DataObject silently fails to pass through any attempts to explicitly set the value. As a result, MySQL does its default behavior which is to insert the current *LOCAL* time, which is useless.
      This was leading to early GC west of GMT, or late GC east of it. Early GC could at worst destroy all live sessions (whoever's session *triggered* GC is fine, as the session then gets saved right back.)
      a7abb232
    • Brion Vibber's avatar
      Add $config['sessions']['gc_limit'] to limit how much work we do in each... · 433ec211
      Brion Vibber authored
      Add $config['sessions']['gc_limit'] to limit how much work we do in each session GC; defaulting to killing 1000 sessions at a time.
      433ec211
  6. 10 Dec, 2010 2 commits
  7. 28 Jan, 2010 1 commit
  8. 09 Oct, 2009 2 commits
  9. 26 Aug, 2009 1 commit
  10. 25 Aug, 2009 3 commits
  11. 02 Aug, 2009 4 commits
  12. 21 Jul, 2009 2 commits
  13. 27 Jun, 2009 5 commits
  14. 15 Jun, 2009 2 commits
  15. 23 Dec, 2008 2 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
  16. 26 Sep, 2008 3 commits
  17. 15 Jul, 2008 1 commit
  18. 09 Jul, 2008 1 commit
  19. 22 May, 2008 1 commit
  20. 21 May, 2008 1 commit
  21. 20 May, 2008 2 commits
  22. 17 May, 2008 1 commit
    • Evan Prodromou's avatar
      fixes to make it all lint · 3b14b790
      Evan Prodromou authored
      Ran everything through php -l, found out that it didn't compile.
      
      So: fixed the am-I-running-in-Laconica check at the top of each file.
      Some syntax fixes in shownotice, showstream, common.
      
      darcs-hash:20080517154701-84dde-8d38da89c5b9cb3b40704adb04a4de880c204181.gz
      3b14b790