Committer: ailyin
LJSUP-12495 (create an admin page for reviewing database data in fotobilder and the new photo hosting)U trunk/cgi-bin/LJ/Widget/ErrorPage.pm U trunk/htdocs/error-page.bml.text
Modified: trunk/cgi-bin/LJ/Widget/ErrorPage.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/ErrorPage.pm 2012-06-06 11:49:50 UTC (rev 12070) +++ trunk/cgi-bin/LJ/Widget/ErrorPage.pm 2012-06-06 12:29:49 UTC (rev 12071) @@ -400,8 +400,16 @@ }; }, - - + 'insufficient_privs' => sub { + return { + 'frank_img' => '/frank-private.png', + 'title' => + LJ::Lang::ml('.errorpage.insufficient_privs.title'), + 'description' => + LJ::Lang::ml('.errorpage.insufficient_privs.description'), + 'links' => [ qw( home faq sitemap ) ], + }; + }, ); $handlers{$_} = $handlers{'private'} foreach qw( forfriends custom members ); Modified: trunk/htdocs/error-page.bml.text =================================================================== --- trunk/htdocs/error-page.bml.text 2012-06-06 11:49:50 UTC (rev 12070) +++ trunk/htdocs/error-page.bml.text 2012-06-06 12:29:49 UTC (rev 12071) @@ -51,6 +51,10 @@ .errorpage.expunged.title|staleness=1 .errorpage.expunged.title=Purged Account +.errorpage.insufficient_privs.title=Forbidden + +.errorpage.insufficient_privs.description=You do not have the necessary privilege to access this page. + .errorpage.internal.title=Internal Server Error .errorpage.internal.description=The server encountered an internal error or misconfiguration and was unable to complete your request.