Permalink
Browse files

only load ARC if it\'s not already loaded. Resolving #10

  • Loading branch information...
1 parent 59aeb8a commit 8ca56765ec663e2636f80a12dc49f9d95f3042ea @cgutteridge committed Mar 23, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 Graphite.php
View
7 Graphite.php
@@ -20,7 +20,12 @@
# todo:
# hasRelationValue, hasRelation, filter
-require_once 'ARC2.php';
+# Load ARC2 assuming it's not already been loaded. Requires ARC2.php to be
+# in the path.
+if( !class_exists( "ARC2" ) )
+{
+ require_once 'ARC2.php';
+}
class Graphite
{

0 comments on commit 8ca5676

Please sign in to comment.