CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Gencode would 'work' if only
Pages: [1]

Author Topic: Gencode would 'work' if only  (Read 1362 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Gencode would 'work' if only
September 22, 2011, 05:02:22 pm
I just discovered that GenCode.php WILL work on a basic svn checkout (ie. generate DAO) if one line is added....

Would this break anything?

Index: drupal/civicrm.config.php.drupal
===================================================================
--- drupal/civicrm.config.php.drupal   (revision 36279)
+++ drupal/civicrm.config.php.drupal   (working copy)
@@ -101,7 +101,7 @@
             }
         }
     }
-
+    define ('CIVICRM_UF', 'Drupal');
     // FIXME: problem spot for Drupal 5.1 config dir layout
     $conf = "$confdir/default";
     return $conf;
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Gencode would 'work' if only
September 22, 2011, 08:57:48 pm
I was wrong - to run GenCode with no site config I also had to add line 77

$confdir = "..";
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Gencode would 'work' if only

This forum was archived on 2017-11-26.