[evolvis-commits] r17731: disable all themes save 'evolvis' because the current theming changes break them

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Nov 30 12:03:36 CET 2011


Author: mirabilos
Date: 2011-11-30 12:03:36 +0100 (Wed, 30 Nov 2011)
New Revision: 17731

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/deb-specific/db-upgrade.pl
   trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
Log:
disable all themes save 'evolvis' because the current theming changes break them

also silently drop evolvis5x as it never became reality


Modified: trunk/gforge_base/evolvisforge-5.1/src/deb-specific/db-upgrade.pl
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/deb-specific/db-upgrade.pl	2011-11-30 11:03:32 UTC (rev 17730)
+++ trunk/gforge_base/evolvisforge-5.1/src/deb-specific/db-upgrade.pl	2011-11-30 11:03:36 UTC (rev 17731)
@@ -2267,31 +2267,26 @@
     &update_with_sql("20111009-string-aggregate-function","5.1-11");
 
     $version = &get_db_version;
-    $target = "5.1-10+evolvis-1";
+    $target = "5.1-11+evolvis-1";
     if (&is_lesser($version, $target)) {
-        &debug("Updating available themes");
-
-	my %new_themes = (
-		'evolvis5x'	=> 'Evolvis 5'
+	&debug("Disabling all non-Evolvis themes");
+	@reqlist = (
+		"UPDATE themes SET enabled='f';",
+		"UPDATE themes SET enabled='t' WHERE dirname='evolvis';",
 	    );
 
-	foreach my $dir (sort keys %new_themes) {
-	    $query = "INSERT INTO themes (dirname, fullname, enabled) VALUES ('$dir', '$new_themes{$dir}', true)";
-	    push @reqlist, $query;
-	}
-
 	foreach my $s (@reqlist) {
 	    $query = $s;
-	    # &debug($query);
+	    # debug $query;
 	    $sth = $dbh->prepare($query);
 	    $sth->execute();
 	    $sth->finish();
 	}
 	@reqlist = ();
 
-        &update_db_version($target);
-        &debug("Committing.");
-        $dbh->commit();
+	&update_db_version($target);
+	&debug("Committing.");
+	$dbh->commit();
     }
 
     ########################### INSERT HERE #################################

Modified: trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2011-11-30 11:03:32 UTC (rev 17730)
+++ trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2011-11-30 11:03:36 UTC (rev 17731)
@@ -32,12 +32,14 @@
   * [#1842] disambiguate some texts
   * www/tracker: {detail,mod{,-limited},add}.php → item.php
   * Add DatePicker control (backing code; no conversion yet)
+  * Disable all nōn-Evolvis themes as my current theming changes,
+    especially to the tracker, break it
 
   [ Mike Esser ]
   * [#1850] Fix merge glitch
   * [#1859] [#1906] Port code from Evolvis 4.8 to 5.1
 
- -- Thorsten Glaser <t.glaser at tarent.de>  Wed, 30 Nov 2011 11:42:38 +0100
+ -- Thorsten Glaser <t.glaser at tarent.de>  Wed, 30 Nov 2011 11:52:26 +0100
 
 fusionforge (5.1.1-3) UNRELEASED; urgency=low
 



More information about the evolvis-commits mailing list