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-18 12:26 am

[dw-nonfree] Transmogrified layout contains unnecessary userprofile module function

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/ee5bf381700f]

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

Remove this function from Transmo, it's in core2 now.

Patch by [personal profile] afuna.

Files modified:
  • bin/upgrading/s2layers/transmogrified/layout.s2
--------------------------------------------------------------------------------
diff -r f9e5fbf8f824 -r ee5bf381700f bin/upgrading/s2layers/transmogrified/layout.s2
--- a/bin/upgrading/s2layers/transmogrified/layout.s2	Sun May 17 03:22:46 2009 +0000
+++ b/bin/upgrading/s2layers/transmogrified/layout.s2	Mon May 18 00:26:17 2009 +0000
@@ -271,32 +271,6 @@ function Page::print()
     """
     </html>
     """;
-}
-
-function print_module_userprofile() {
-    var Page p = get_page();
-    var string title = "Profile";
-
-    open_module("userprofile", $title, "");
-
-    if ($*module_userprofile_opts_userpic) {
-        if (defined $p.journal.default_pic) { 
-            """<div class="userpic">""";
-            $p.journal->print_userpic();
-            """</div>""";
-        }
-    }
-    if ($*module_userprofile_opts_name or $*module_userprofile_opts_website) {
-        if ($*module_userprofile_opts_name) {
-            println "<p>"+$p.journal.name+"</p>";
-        }
-        if ($*module_userprofile_opts_website and $p.journal.website_url != "") {
-            var string website_name = ( $p.journal.website_name != "" ) ? $p.journal.website_name : $*text_website_default_name;
-            println "<p><a href='$p.journal.website_url'>$website_name</a></p>";
-        }
-    }
-    $p.journal->print_interaction_links();
-    close_module();
 }
 
 function print_stylesheet () {
--------------------------------------------------------------------------------