diff --git a/livesupport/modules/storageServer/var/Prefs.php b/livesupport/modules/storageServer/var/Prefs.php
index fa251d6f8..69232f99d 100644
--- a/livesupport/modules/storageServer/var/Prefs.php
+++ b/livesupport/modules/storageServer/var/Prefs.php
@@ -23,7 +23,7 @@
Author : $Author: tomas $
- Version : $Revision: 1.5 $
+ Version : $Revision: 1.6 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/Prefs.php,v $
------------------------------------------------------------------------------*/
@@ -353,9 +353,13 @@ class Prefs{
ON {$this->prefTable} (subjid, keystr)");
$this->dbc->query("CREATE INDEX {$this->prefTable}_subjid_idx
ON {$this->prefTable} (subjid)");
- $stPrefGr = $this->gb->getSubjId('StationPrefs');
+ $stPrefGr = $this->gb->getSubjId($this->gb->config['StationPrefsGr']);
+ if(PEAR::isError($stPrefGr)) echo $stPrefGr->getMessage()."\n";
$r = $this->insert($stPrefGr, 'stationName', "Radio Station 1");
if(PEAR::isError($r)) echo $r->getMessage()."\n";
+ $genres = file_get_contents( dirname(__FILE__).'/genres.xml');
+ $r = $this->insert($stPrefGr, 'genres', $genres);
+ if(PEAR::isError($r)) echo $r->getMessage()."\n";
return TRUE;
}
diff --git a/livesupport/modules/storageServer/var/genres.xml b/livesupport/modules/storageServer/var/genres.xml
new file mode 100644
index 000000000..1f8f4841a
--- /dev/null
+++ b/livesupport/modules/storageServer/var/genres.xml
@@ -0,0 +1,136 @@
+
+
+
+
+
+
+]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/livesupport/modules/storageServer/var/tests/mdata1.xml b/livesupport/modules/storageServer/var/tests/mdata1.xml
index ac6fbdeb6..e5c713b34 100644
--- a/livesupport/modules/storageServer/var/tests/mdata1.xml
+++ b/livesupport/modules/storageServer/var/tests/mdata1.xml
@@ -12,6 +12,7 @@
Keywords: qwe, asd, zcx
Abstract txt
2004-05-21
+ Folk
audio/mpeg
00:00:03.000000