Bugfixes.
This commit is contained in:
@@ -12,6 +12,9 @@ if( @include dirname(__FILE__) . '/public/config.php' ) {
|
|||||||
|
|
||||||
class ISQ { public static $general = array(), $links = array(), $social = array(), $recaptcha = array(); }
|
class ISQ { public static $general = array(), $links = array(), $social = array(), $recaptcha = array(); }
|
||||||
|
|
||||||
|
// Default dependencies
|
||||||
|
$dependencies = array();
|
||||||
|
|
||||||
// Load translations
|
// Load translations
|
||||||
yourls_load_custom_textdomain( 'isq_translation', 'public/languages' );
|
yourls_load_custom_textdomain( 'isq_translation', 'public/languages' );
|
||||||
?>
|
?>
|
||||||
|
|||||||
14
result.php
14
result.php
@@ -7,15 +7,17 @@ if ( ISQ::$general['clipboard'] ) {
|
|||||||
$dependencies[] = 'ZeroClipboard';
|
$dependencies[] = 'ZeroClipboard';
|
||||||
};
|
};
|
||||||
|
|
||||||
function display_error( $message, $action ) {
|
function display_error( $message, $action = null ) {
|
||||||
echo '<div class="content error">';
|
echo '<div class="content error">';
|
||||||
echo '<p class="message">' . $message . '</p>';
|
echo '<p class="message">' . $message . '</p>';
|
||||||
|
|
||||||
if( !empty( $action ) ) {
|
echo '<p class="action">';
|
||||||
echo $action;
|
if( !empty( $action ) ) {
|
||||||
} else {
|
echo $action;
|
||||||
echo '<p class="action"><a href="javascript:history.go(-1)" class="button">' . yourls__( '← Go back and try again', 'isq_translation' ) . '</a></p>';
|
} else {
|
||||||
}
|
echo '<a href="' . YOURLS_SITE . '" class="button">' . yourls__( '← Go home and try again', 'isq_translation' ) . '</a>';
|
||||||
|
}
|
||||||
|
echo '</p>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
include('footer.php');
|
include('footer.php');
|
||||||
|
|||||||
Reference in New Issue
Block a user