Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r12205: LJSUP-12778 (change line breaks in cgi-b...

Committer: ailyin
LJSUP-12778 (change line breaks in cgi-bin/LJ/Hooks/SiteScheme.pm)
U   trunk/cgi-bin/LJ/Hooks/SiteScheme.pm
Modified: trunk/cgi-bin/LJ/Hooks/SiteScheme.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/SiteScheme.pm	2012-07-02 08:15:42 UTC (rev 12204)
+++ trunk/cgi-bin/LJ/Hooks/SiteScheme.pm	2012-07-02 12:16:04 UTC (rev 12205)
@@ -1,36 +1,36 @@
-package LJ::Hooks::SiteScheme;-use strict;-use warnings;--my %lite_scheme_directories = map { $_ => 1 } qw( create postreg tour );--LJ::register_hook(-    'force_scheme' => sub {-        if ($LJ::IS_SSL) {-            return 'horizon_lite';-        }--        my $uri = LJ::Request->uri;--        my $directory = ( $uri =~ m{^/(\w*)} );-        return if $directory eq '';--        if ( $lite_scheme_directories{$directory} ) {-            return 'horizon_lite';-        }--        return;-    }-);--LJ::register_hook(-    'default_scheme' => sub {-        if ( LJ::SUP->is_remote_sup ) {-            return 'lanzelot';-        }--        return 'horizon';-    }-);--1;
\ No newline at end of file
+package LJ::Hooks::SiteScheme;
+use strict;
+use warnings;
+
+my %lite_scheme_directories = map { $_ => 1 } qw( create postreg tour );
+
+LJ::register_hook(
+    'force_scheme' => sub {
+        if ($LJ::IS_SSL) {
+            return 'horizon_lite';
+        }
+
+        my $uri = LJ::Request->uri;
+
+        my $directory = ( $uri =~ m{^/(\w*)} );
+        return if $directory eq '';
+
+        if ( $lite_scheme_directories{$directory} ) {
+            return 'horizon_lite';
+        }
+
+        return;
+    }
+);
+
+LJ::register_hook(
+    'default_scheme' => sub {
+        if ( LJ::SUP->is_remote_sup ) {
+            return 'lanzelot';
+        }
+
+        return 'horizon';
+    }
+);
+
+1;

Tags: ailyin, andy, ljcom, pm
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