From 94fa2a32850f074ed2bf72e897d8ecd17ec5471e Mon Sep 17 00:00:00 2001 From: Tom Slominski Date: Sun, 24 Jul 2016 12:42:10 +0100 Subject: [PATCH] Bugfixes. --- header.php | 3 +++ result.php | 14 ++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/header.php b/header.php index edd79b6..d1716f1 100644 --- a/header.php +++ b/header.php @@ -12,6 +12,9 @@ if( @include dirname(__FILE__) . '/public/config.php' ) { 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' ); ?> diff --git a/result.php b/result.php index 837230a..bd02406 100644 --- a/result.php +++ b/result.php @@ -7,15 +7,17 @@ if ( ISQ::$general['clipboard'] ) { $dependencies[] = 'ZeroClipboard'; }; -function display_error( $message, $action ) { +function display_error( $message, $action = null ) { echo '
'; echo '

' . $message . '

'; - if( !empty( $action ) ) { - echo $action; - } else { - echo '

' . yourls__( '← Go back and try again', 'isq_translation' ) . '

'; - } + echo '

'; + if( !empty( $action ) ) { + echo $action; + } else { + echo '' . yourls__( '← Go home and try again', 'isq_translation' ) . ''; + } + echo '

'; echo '
'; include('footer.php');