Permalink
Browse files

Bugfixes.

  • Loading branch information...
tomslominski committed Jul 24, 2016
1 parent d6e0a65 commit 94fa2a32850f074ed2bf72e897d8ecd17ec5471e
Showing with 11 additions and 6 deletions.
  1. +3 −0 header.php
  2. +8 −6 result.php
View
@@ -12,6 +12,9 @@
class ISQ { public static $general = array(), $links = array(), $social = array(), $recaptcha = array(); }
// Default dependencies
$dependencies = array();
// Load translations
yourls_load_custom_textdomain( 'isq_translation', 'public/languages' );
?>
View
@@ -7,15 +7,17 @@
$dependencies[] = 'ZeroClipboard';
};
function display_error( $message, $action ) {
function display_error( $message, $action = null ) {
echo '<div class="content error">';
echo '<p class="message">' . $message . '</p>';
if( !empty( $action ) ) {
echo $action;
} else {
echo '<p class="action"><a href="javascript:history.go(-1)" class="button">' . yourls__( '&larr; Go back and try again', 'isq_translation' ) . '</a></p>';
}
echo '<p class="action">';
if( !empty( $action ) ) {
echo $action;
} else {
echo '<a href="' . YOURLS_SITE . '" class="button">' . yourls__( '&larr; Go home and try again', 'isq_translation' ) . '</a>';
}
echo '</p>';
echo '</div>';
include('footer.php');

0 comments on commit 94fa2a3

Please sign in to comment.