wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r10920: LJSUP-9470. Error Access

Committer: gprochaev
LJSUP-9470. Error Access

U   trunk/htdocs/error-page.bml
U   trunk/htdocs/error-page.bml.text
Modified: trunk/htdocs/error-page.bml
===================================================================
--- trunk/htdocs/error-page.bml	2011-08-25 08:05:40 UTC (rev 10919)
+++ trunk/htdocs/error-page.bml	2011-08-25 08:12:24 UTC (rev 10920)
@@ -134,6 +134,18 @@
     push @links, LJ::Lang::ml('.errorpage.private.link.faq', { aopts => "href='$LJ::SITEROOT/support/faqbrowse.bml?faqid=24'" });
     push @links, LJ::Lang::ml('.errorpage.not_found.link.site_map',  { aopts => "href='$LJ::SITEROOT/site/'" });
     $ad_html = LJ::get_ads( { location => 'error_page.private', journalu => $remote } );
+} elsif ($error_type =~ /ljphoto_members/) {
+    $frank_img = "/frank-private.png";
+    $title = LJ::Lang::ml('.errorpage.ljphoto_closed.title');
+    my $ljphoto_comm = LJ::load_user($LJ::LJPHOTO_ALLOW_FROM_COMMUNITY);
+    $description = LJ::Lang::ml('.errorpage.ljphoto_closed.description', { ljphoto_comm => $ljphoto_comm->ljuser_display } );
+    $user = LJ::load_user ($user);
+    #push @links, LJ::Lang::ml('.errorpage.recent_entries', { aopts => "href='".$user->journal_base."'" } ) if $user && $user->statusvis eq 'V';
+    push @links, LJ::Lang::ml('.errorpage.link.go_home',   { aopts => "href='$LJ::SITEROOT'" });
+    push @links, LJ::Lang::ml('.errorpage.not_found.link.faq', { aopts => "href='$LJ::SITEROOT/support/faq.bml'" });
+    #push @links, LJ::Lang::ml('.errorpage.private.link.lastentries', { aopts => "href='".$user->journal_base."'" }) if $user;
+    push @links, LJ::Lang::ml('.errorpage.not_found.link.site_map',  { aopts => "href='$LJ::SITEROOT/site/'" });
+    $ad_html = LJ::get_ads( { location => 'error_page.private', journalu => $remote } );
 } elsif ($error_type =~ /forfriends|custom|private|members/) {
     $frank_img = "/frank-private.png";
     $title = LJ::Lang::ml('.errorpage.private.title');

Modified: trunk/htdocs/error-page.bml.text
===================================================================
--- trunk/htdocs/error-page.bml.text	2011-08-25 08:05:40 UTC (rev 10919)
+++ trunk/htdocs/error-page.bml.text	2011-08-25 08:12:24 UTC (rev 10920)
@@ -30,6 +30,10 @@
 
 .errorpage.links=Use links for more options:
 
+.errorpage.ljphoto_closed.title=Access is closed.
+
+.errorpage.ljphoto_closed.description=To get access you can request to join a community of [[ljphoto_comm]].
+
 .errorpage.not_found.description=You may have followed a broken link or typed the address incorrectly. Some page addresses are case sensitive.
 
 .errorpage.not_found.link.faq=<a [[aopts]]>FAQ</a>

Tags: bml, ljcom, text, wisest-owl
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