summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/feeds.php6
-rw-r--r--classes/pluginhandler.php10
-rw-r--r--classes/sanitizedummy.php2
3 files changed, 12 insertions, 6 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 8549f8a76..dd9a4f588 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -513,12 +513,12 @@ class Feeds extends Handler_Protected {
$mouseover_attrs = "onmouseover='postMouseIn($id)'
onmouseout='postMouseOut($id)'";
- $reply['content'] .= "<div class=\"$class\" $label_row_style
+ $reply['content'] .= "<div class=\"cdm $class\"
id=\"RROW-$id\" $mouseover_attrs'>";
$reply['content'] .= "<div class=\"cdmHeader\">";
- $reply['content'] .= "<div>";
+ $reply['content'] .= "<div style=\"vertical-align : middle\">";
$reply['content'] .= "<input dojoType=\"dijit.form.CheckBox\"
type=\"checkbox\" onclick=\"toggleSelectRow2(this, false, true)\"
@@ -563,7 +563,7 @@ class Feeds extends Handler_Protected {
$reply['content'] .= "</span>";
- $reply['content'] .= "<div>";
+ $reply['content'] .= "<div style=\"vertical-align : middle\">";
$reply['content'] .= "<span class='updated'>$updated_fmt</span>";
$reply['content'] .= "$score_pic";
diff --git a/classes/pluginhandler.php b/classes/pluginhandler.php
index df7058dcd..eb859ab32 100644
--- a/classes/pluginhandler.php
+++ b/classes/pluginhandler.php
@@ -9,8 +9,14 @@ class PluginHandler extends Handler_Protected {
$plugin = $pluginhost->get_plugin($_REQUEST["plugin"]);
- if (method_exists($plugin, $method)) {
- $plugin->$method();
+ if ($plugin) {
+ if (method_exists($plugin, $method)) {
+ $plugin->$method();
+ } else {
+ print json_encode(array("error" => "METHOD_NOT_FOUND"));
+ }
+ } else {
+ print json_encode(array("error" => "PLUGIN_NOT_FOUND"));
}
}
}
diff --git a/classes/sanitizedummy.php b/classes/sanitizedummy.php
index a184bec30..7182fb7f5 100644
--- a/classes/sanitizedummy.php
+++ b/classes/sanitizedummy.php
@@ -1,6 +1,6 @@
<?php
class SanitizeDummy extends SimplePie_Sanitize {
- function sanitize($data, $type, $base) {
+ function sanitize($data, $type, $base = '') {
return $data;
}
}