]> git.nbdom.net Git - nb.git/commitdiff
yaml
authorNico Boisselier <nico@dhcp-192-168-4-150.semantico.net>
Mon, 5 Sep 2016 15:33:22 +0000 (16:33 +0100)
committerNico Boisselier <nico@dhcp-192-168-4-150.semantico.net>
Mon, 5 Sep 2016 15:33:22 +0000 (16:33 +0100)
lib/php/nb.php

index c75a2f90b10f55866c8ec74bf29ea659eccaf483..7e0e8457aab528c431d38952ca4b8aa2bc808a15 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 if (!defined('NB_ROOT')) define('NB_ROOT',realpath(dirname(__FILE__).'/../..'));
 if (!defined('NB_EOL')) define('NB_EOL',defined('NB_PROD') ? '' : "\n");
-require_once(realpath(dirname(__FILE__).'/functions.php'));
-#$nb = new NB(); debug($nb->test());
-if (class_exists('NB')) return;
-
 if (!function_exists('yaml_emit')) {
   require_once(realpath(dirname(__FILE__).'/Spyc.php'));
   function yaml_emit($data) { return Spyc::YAMLDump($data, false, false, true); }
   function yaml_parse_file($file) { return Spyc::YAMLLoad($file); }
 }
+require_once(realpath(dirname(__FILE__).'/functions.php'));
+#$nb = new NB(); debug($nb->test());
+if (class_exists('NB')) return;
+
 class NB {
 
   const ROOT_DIR = NB_ROOT;