1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

Add admin logging to poll

This commit is contained in:
e107steved
2008-08-17 12:02:14 +00:00
parent 53880f8002
commit cb7379ffa5

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
| $Revision: 1.45 $ | $Revision: 1.46 $
| $Date: 2008-08-15 13:15:11 $ | $Date: 2008-08-17 12:02:14 $
| $Author: secretr $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -447,7 +447,7 @@ class e107plugin
$tmp[] = "comment_type='".$tp -> toDB($com, true)."'"; $tmp[] = "comment_type='".$tp -> toDB($com, true)."'";
} }
$qry = implode(" OR ",$tmp); $qry = implode(" OR ",$tmp);
echo $qry."<br />"; // echo $qry."<br />";
return $sql->db_Delete('comments', $qry); return $sql->db_Delete('comments', $qry);
} }
} }
@@ -774,7 +774,8 @@ class e107plugin
if ($canContinue) if ($canContinue)
{ // Let's call any custom pre functions defined in <management> section { // Let's call any custom pre functions defined in <management> section
$txt .= $this->execute_function($path, $function, 'pre'); $ret = $this->execute_function($path, $function, 'pre');
if (!is_bool($ret)) $txt .= $ret;
} }
if ($canContinue && count($sql_list)) if ($canContinue && count($sql_list))
@@ -987,8 +988,11 @@ class e107plugin
save_prefs(); save_prefs();
// Let's call any custom post functions defined in <management> section if ($canContinue)
$txt .= $this->execute_function($path, $function, 'post'); { // Let's call any custom post functions defined in <management> section
$ret = $this->execute_function($path, $function, 'post');
if (!is_bool($ret)) $txt .= $ret;
}
$eplug_addons = $this->getAddons($plug['plugin_path']); $eplug_addons = $this->getAddons($plug['plugin_path']);