set $text

This commit is contained in:
Denny Dai
2015-06-26 14:14:14 +08:00
parent d0391f4a7e
commit 1ab6510772
6 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
PluginList("trans", "translate");
if (preg_match("/^".TAG."trans (.*)$/", $_GET['text'], $matches)) {
if (preg_match("/^".TAG."trans (.*)$/", $text, $matches)) {
$matches = explode(" ", $matches[1], 2);
if (!isset($matches[1])) {
$to = "en";