Store properties with a slast instead of a dot as separator.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 10:30:26 +0000 (12:30 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 10:30:26 +0000 (12:30 +0200)
This will allow us to access all properties from the templates.

src/main/java/net/pterodactylus/demoscenemusic/page/admin/AddTrackDerivativePage.java

index 579940c..2a80f78 100644 (file)
@@ -118,7 +118,7 @@ public class AddTrackDerivativePage extends AdminBasePage {
 
                                        /* okay, we’re here, so everything’s fine, probably. */
                                        TrackDerivative derivative = getCore().getDataManager().createTrackDerivative(track);
-                                       derivative.getProperties().set("file.original-name", filename);
+                                       derivative.getProperties().set("file/original-name", filename);
                                        getCore().getDataManager().saveTrackDerivate(derivative);
 
                                        /* copy the file again. */