disable manual article rescoring

This commit is contained in:
Andrew Dolgov 2009-01-18 16:15:38 +01:00
parent f92471951b
commit 9bf3f101cc
3 changed files with 8 additions and 6 deletions

View File

@ -5106,10 +5106,12 @@
$score_pic = get_score_pic($score); $score_pic = get_score_pic($score);
$score_title = __("(Click to change)"); /* $score_title = __("(Click to change)");
$score_pic = "<img class='hlScorePic' src=\"images/$score_pic\"
onclick=\"adjustArticleScore($id, $score)\" title=\"$score $score_title\">"; */
$score_pic = "<img class='hlScorePic' src=\"images/$score_pic\" $score_pic = "<img class='hlScorePic' src=\"images/$score_pic\"
onclick=\"adjustArticleScore($id, $score)\" title=\"$score $score_title\">"; title=\"$score\">";
if ($score > 500) { if ($score > 500) {
$hlc_suffix = "H"; $hlc_suffix = "H";

View File

@ -378,7 +378,7 @@
return; return;
} }
if ($subop == "setScore") { /* if ($subop == "setScore") {
$id = db_escape_string($_REQUEST["id"]); $id = db_escape_string($_REQUEST["id"]);
$score = sprintf("%d", $_REQUEST["score"]); $score = sprintf("%d", $_REQUEST["score"]);
@ -389,7 +389,7 @@
return; return;
} } */
if ($subop == "getArticles") { if ($subop == "getArticles") {
$ids = split(",", db_escape_string($_REQUEST["ids"])); $ids = split(",", db_escape_string($_REQUEST["ids"]));

View File

@ -942,7 +942,7 @@ function viewLimitChanged() {
return viewCurrentFeed(0, '') return viewCurrentFeed(0, '')
} }
function adjustArticleScore(id, score) { /* function adjustArticleScore(id, score) {
try { try {
var pr = prompt(__("Assign score to article:"), score); var pr = prompt(__("Assign score to article:"), score);
@ -959,7 +959,7 @@ function adjustArticleScore(id, score) {
} catch (e) { } catch (e) {
exception_error("adjustArticleScore", e); exception_error("adjustArticleScore", e);
} }
} } */
function rescoreCurrentFeed() { function rescoreCurrentFeed() {