From 10af3dbe1cef6a03c133d6d92b07a58e283e6bb4 Mon Sep 17 00:00:00 2001 From: Tom Slominski Date: Sat, 2 Nov 2013 19:17:42 +0000 Subject: [PATCH] Since error definitions have been removed from the public page included with YOURLS, I guess they're not needed anymore. --- header.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/header.php b/header.php index da91fa7..42f5271 100644 --- a/header.php +++ b/header.php @@ -14,20 +14,6 @@ function isq_load_textdomain() { } isq_load_textdomain(); -// Error definitions -$genericerror = '

' . yourls__( 'An error has occured :(', 'isq_translation') . '

'; -if ( $message = $url. yourls__( 'added to database', 'isq_translation') ) { - $error = '

' . yourls__( 'URL shortened successfully', 'isq_translation') . '

' . yourls__( 'View the details of your short URL below.', 'isq_translation') . '

'; - } elseif ( $message = $url. yourls__( 'already exists in database', 'isq_translation') ) { - $error = $genericerror . '

' . yourls__( 'This URL already exists in this database. This website does not allow a single URL to have multiple short links.', 'isq_translation') . '

'; - } elseif ( $message = yourls__( 'Short URL', 'isq_translation') . $url . yourls__( 'already exists in database or is reserved', 'isq_translation') ) { - $error = $genericerror . '

' . yourls__( 'This short URL already exists in this database or is reserved. This website does not allow a single URL to have multiple short links. It could\'ve also been reserved by the admin.', 'isq_translation') . '

'; - } elseif ( $message = yourls__( 'Missing URL input', 'isq_translation') ) { - $error = $genericerror . '

' . yourls__( 'You did not enter the URL you want to shorten or the server lost it. Please try again.', 'isq_translation') . '

'; - } elseif ( $message = yourls__( 'This URL is a short URL', 'isq_translation') ) { - $error = $genericerror . '

' . yourls__( 'You cannot shorten a short URL!', 'isq_translation') . '

'; - } - // Load reCAPTCHA require_once('public/recaptchalib.php'); ?>