mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-05-10 05:58 am

[dw-free] Migrate /settings settings to an Advanced Settings tab

[commit: http://hg.dwscoalition.org/dw-free/rev/1c97618605a6]

http://bugs.dwscoalition.org/show_bug.cgi?id=744

Fix error on /settings page.

Patch by [personal profile] afuna.

Files modified:
  • htdocs/settings/index.bml
--------------------------------------------------------------------------------
diff -r 9dd69edb7fb6 -r 1c97618605a6 htdocs/settings/index.bml
--- a/htdocs/settings/index.bml	Sun May 10 05:54:26 2009 +0000
+++ b/htdocs/settings/index.bml	Sun May 10 05:58:55 2009 +0000
@@ -22,7 +22,10 @@
     my $selminiclass = $GET{c};   # classname without LJ::Setting::
     my $selclass = $selminiclass ? "LJ::Setting::$selminiclass" : "";
 
-    my @settings = map { s!.+cgi-bin/!!; s!/!::!g; s/\.pm$//; $_ } ( glob "$LJ::HOME/cgi-bin/LJ/Setting/*.pm", glob "$LJ::HOME/cgi-bin/DW/Setting/*.pm" );
+    my @settings = (
+        LJ::ModuleLoader->module_subclasses( "LJ::Setting" ),
+        LJ::ModuleLoader->module_subclasses( "DW::Setting" )
+    );
 
     my $tag = lc $GET{tag};
     my %tags = ();
--------------------------------------------------------------------------------