Permalink
Browse files

SITEID is more flexible

  • Loading branch information...
1 parent 5efca06 commit 14b03b35078117b67764fec55196b3a6331fdbd2 moodler committed Sep 9, 2004
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/datalib.php
View
@@ -1,8 +1,11 @@
<?PHP // $Id$
-/// CONSTANTS /////////////////////////////////////////////////////////////
-
-define('SITEID', 1);
+/// GLOBAL CONSTANTS /////////////////////////////////////////////////////////////
+if ($SITE = get_site()) {
+ define('SITEID', $SITE->id);
+} else {
+ define('SITEID', 1);
+}
/// FUNCTIONS FOR DATABASE HANDLING ////////////////////////////////

0 comments on commit 14b03b3

Please sign in to comment.