Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r18826: LJSUP-8536: SSLROOT at S2 style

Committer: gariev
LJSUP-8536: SSLROOT at S2 style
U   trunk/bin/upgrading/s2layers/core1.s2
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/bin/upgrading/s2layers/core1.s2
===================================================================
--- trunk/bin/upgrading/s2layers/core1.s2	2011-04-08 08:29:04 UTC (rev 18825)
+++ trunk/bin/upgrading/s2layers/core1.s2	2011-04-08 08:39:59 UTC (rev 18826)
@@ -1085,6 +1085,12 @@
     des = "The base URL of the current LiveJournal site, without a trailing slash.  Example: \"http://www.livejournal.com\".";
 }
 
+property builtin string SSLROOT {
+    noui = 1;
+    doc_flags = "[sys]";
+    des = "The base URL of the secure (https://) site, without a trailing slash.  Example: \"https://www.livejournal.com\".";
+}
+
 property builtin string PALIMGROOT {
     noui = 1;
     doc_flags = "[sys]";

Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2011-04-08 08:29:04 UTC (rev 18825)
+++ trunk/cgi-bin/LJ/S2.pm	2011-04-08 08:39:59 UTC (rev 18826)
@@ -1276,6 +1276,7 @@
 {
     my $ctx = shift;
     $ctx->[S2::PROPS]->{'SITEROOT'} = $LJ::SITEROOT;
+    $ctx->[S2::PROPS]->{'SSLROOT'} = $LJ::SSLROOT;
     $ctx->[S2::PROPS]->{'PALIMGROOT'} = $LJ::PALIMGROOT;
     $ctx->[S2::PROPS]->{'SITENAME'} = $LJ::SITENAME;
     $ctx->[S2::PROPS]->{'SITENAMESHORT'} = $LJ::SITENAMESHORT;

Tags: gariev, livejournal, pm, s2
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments