Remove ConvertEntities
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 3 Dec 2012 14:39:52 +0000 (15:39 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 3 Dec 2012 14:39:52 +0000 (15:39 +0100)
wcfsetup/install/files/lib/system/CLIWCF.class.php

index dbdaabab8b1791f4c59cf4191e56b3c2716f49b4..c5e415cc6dcad50f01e623bc3f4deaa2b5018780 100644 (file)
@@ -196,17 +196,6 @@ class CLIWCF extends WCF {
                return self::getReader()->getTerminal();
        }
        
-       /**
-        * Converts certain HTML entities to a proper CLI counterpart.
-        * 
-        * @param       string  $string
-        * @return      string
-        */
-       public static function convertEntities($string) {
-               // ldquo, rdquo and bdquo -> "
-               return Regex::compile('&[lrb]dquo;')->replace($string, '"');
-       }
-       
        /**
         * Does the user authentification.
         */
@@ -231,7 +220,7 @@ class CLIWCF extends WCF {
                }
                catch (UserInputException $e) {
                        $message = WCF::getLanguage()->getDynamicVariable('wcf.user.'.$e->getField().'.error.'.$e->getType(), array('username' => $username));
-                       self::getReader()->println(self::convertEntities($message));
+                       self::getReader()->println($message);
                        exit;
                }