Skip to content
Snippets Groups Projects
  1. Apr 29, 2019
  2. Apr 11, 2019
  3. Dec 13, 2018
  4. Apr 19, 2018
    • totten's avatar
      (NFC) Update version in header · fee14197
      totten authored
      This is a simple administrative update to the headers. It was generated with the command:
      
      ```
      rgrep '| CiviCRM version 4.7' CRM/ Civi ang api bin extern install/ settings/ templates -l \
        | xargs sed -i'' "s/| CiviCRM version 4.7/| CiviCRM version 5  /g"
      ```
      
      Tthe inclusion of `|` aimed to avoid matching any non-header text (e.g. inline docs that
      mentioned the version incidentally). But then I did a looser search and for just
      
      ```
      rgrep 'CiviCRM version 4.7'
      ````
      
      and manually patched the remainder.
      
      Note: I'm not really keen on doing this every month, so I relaxed the header
      statement -- instead of `CiviCRM version 5.0`, it's just `CiviCRM version 5`.
      fee14197
  5. Sep 20, 2017
  6. Aug 30, 2017
  7. Jul 17, 2017
  8. Jun 22, 2017
  9. Jun 21, 2017
  10. Mar 28, 2017
  11. Mar 23, 2017
    • eileen's avatar
      Towards CRM-20155 remove duplicate calls to dedupe functions. · fedc3428
      eileen authored
      This is a partial commit which covers the best tested section of these & establishes the new functions.
      
      I didn't want to make the commit too daunting. The bin file probably has not been used in years
      hence all the require_once calls :-)
      fedc3428
  12. Jan 02, 2017
  13. Oct 19, 2016
  14. Aug 30, 2016
  15. Aug 17, 2016
    • totten's avatar
      CRM-19223 - bin/encryptDB.php - Completely disable by default · c5d44ae3
      totten authored
      Arguably, it's sufficient to check for administrative privileges...  since
      an administrator can do this kind of damage anyway...  but this use-case is
      so broad, dangerous, and uncommon that it really shouldn't be available
      unless you take extraordinary measures.
      
      It's tempting to remove the file entirely, but some upgrade workflows don't
      properly handle deleted files, and some users may still want access to this
      code so that they can run it themselves.
      c5d44ae3
    • totten's avatar
      migrate/(export,import)JSON.php - Syntax cleanup · 8db3c914
      totten authored
      8db3c914
  16. Aug 11, 2016
  17. May 28, 2016
    • totten's avatar
      bin/regen.sh - Run DatabaseInitializer (first boot) before GenerateData · 27458805
      totten authored
      The DatabaseInitializer is called during first boot
      (`CRM_Core_Config::singleton()`) and runs `system.flush session=1
      triggers=1` which (among other things) enumerates modules (including CMS
      modules).  In standalone boot protocol, that means it runs before
      `CRM_Utils_System::loadBootstrap()` (which means that CMS modules
      cannot be enumerated yet).
      
      A simple work-around is to always boot the CMS first (before
      `CRM_Core_Config::singleton()` or `DatabaseInitializer` runs).
      27458805
    • totten's avatar
      bin/regen.sh - Execute GenerateData.php with a dummy CMS · e5d28387
      totten authored
      1. This addresses the error [PHP Fatal error:  Call to undefined function db_query() in /opt/buildkit/build/mytestbuild/sites/all/modules/civicrm/CRM/Utils/System/DrupalBase.php](http://civicrm.stackexchange.com/questions/11972/regen-sh-call-to-undefined-function-db-query/11986#11986).
      
      2.  Generally, the goal here is to produce `civicrm_generated.mysql`, which
      is used on any/all CMS's to initialize the Civi database.  If the generation
      were really dependent on Drupal 7, then we wouldn't be able to use that
      output on other CMS's, right?  Thus I'm hopeful that we can generate
      `civicrm_generated.mysql` with any `CIVICRM_UF`.  And the `UnitTests` UF has
      fewer dependencies/interactions.
      
      3. Since `GenerateData.php` is running in a dummy CMS, we can remove
      these weird mock-drupal-functions.
      
      4. To test, I ran `regen.sh` and compared the output with the old one.
      All the changes looked like random-data (`civicrm_contact`, etal) and
      not structural data (`civicrm_option_value`, etal).
      e5d28387
  18. May 23, 2016
    • totten's avatar
      bin/regen.sh - Drop-create table `zipcodes` · 08b8c7c3
      totten authored
      The original `regen.sh` script drops the table `zipcodes` after creating it.
      That works fine in normal execution (when `regen.sh` finishes without
      erorr).  But if there is an error, then the table gets left in the DB -- and
      creates a conflict when you try re-run `regen.sh`.
      
      This patch does a 'drop-create' so that subsequent runs will work despite a
      previous error.
      08b8c7c3
  19. May 10, 2016
    • eileen's avatar
      CRM-17335 reduce use of nullArray · 33621c4f
      eileen authored
      The null array static is a work-around for pass-by-reference signatures but the executeQuery no longer requires it.
      
      It's not actually 'just' tidy-up as the array can become contaminated, leading to hard to diagnose bugs.
      
      Note there is one instance of a similar tidy up on contribution::create in this - the  parameter is no longer mandatory & we call this function so often I feel confident about removing the stray & too
      33621c4f
  20. Mar 21, 2016
  21. Feb 23, 2016
  22. Feb 02, 2016
  23. Jan 19, 2016
  24. Jan 08, 2016
  25. Jan 07, 2016
  26. Nov 08, 2015
  27. Sep 21, 2015
    • totten's avatar
      CRM-16373 - Bootstrap subsystems in more predictable order · 83617886
      totten authored
      Several subsystems were initialized on-demand. This had a weird side-effect
      where the container would start initializing and call another service, which
      would then (indirectly) try to initialize another container. The two container
      instances would not be the same.
      
      This revision enforces a more carefully considered sequence of events (which
      will be documented in the wiki page, "Bootstrap Reference").
      83617886
  28. Sep 17, 2015
  29. Sep 03, 2015
  30. Aug 21, 2015
  31. Aug 18, 2015
  32. Aug 16, 2015
  33. Aug 14, 2015
  34. Jul 30, 2015
Loading