af_psql_trgm: do not try to render preference pane if enabled on mysql

master
Andrew Dolgov 8 years ago
parent e54eb40a8c
commit e8a94ec7e2

@ -119,7 +119,7 @@ class Af_Psql_Trgm extends Plugin {
if (DB_TYPE != "pgsql") {
print_error("Database type not supported.");
}
} else {
$result = db_query("select 'similarity'::regproc");
@ -163,25 +163,25 @@ class Af_Psql_Trgm extends Plugin {
print "<table>";
print "<tr><td width=\"40%\">".__("Minimum similarity:")."</td>";
print "<tr><td width=\"40%\">" . __("Minimum similarity:") . "</td>";
print "<td>
<input dojoType=\"dijit.form.ValidationTextBox\"
placeholder=\"0.75\"
required=\"1\" name=\"similarity\" value=\"$similarity\"></td></tr>";
print "<tr><td width=\"40%\">".__("Minimum title length:")."</td>";
print "<tr><td width=\"40%\">" . __("Minimum title length:") . "</td>";
print "<td>
<input dojoType=\"dijit.form.ValidationTextBox\"
placeholder=\"32\"
required=\"1\" name=\"min_title_length\" value=\"$min_title_length\"></td></tr>";
print "<tr><td width=\"40%\">".__("Enable for all feeds:")."</td>";
print "<tr><td width=\"40%\">" . __("Enable for all feeds:") . "</td>";
print "<td>
<input dojoType=\"dijit.form.CheckBox\"
$enable_globally_checked name=\"enable_globally\"></td></tr>";
print "</table>";
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".
__("Save")."</button>";
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">" .
__("Save") . "</button>";
print "</form>";
@ -199,11 +199,12 @@ class Af_Psql_Trgm extends Plugin {
print "<li>" .
"<img src='images/pub_set.png'
style='vertical-align : middle'> <a href='#'
onclick='editFeed($f)'>".
onclick='editFeed($f)'>" .
getFeedTitle($f) . "</a></li>";
}
print "</ul>";
}
}
print "</div>";
}

Loading…
Cancel
Save