summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-21 14:37:43 +0400
committerAndrew Dolgov <[email protected]>2012-08-21 14:37:43 +0400
commit9aceda3afc70eba20fa236c46c050b1e63ca07ca (patch)
tree74f3e8db16db3b9eb4aef5389be6ed4e00f0347f /include
parent23d2471c925ed31228e68210e7a55c836234645e (diff)
remove hook-based plugins
Diffstat (limited to 'include')
-rw-r--r--include/functions.php6
-rw-r--r--include/rssfuncs.php6
2 files changed, 0 insertions, 12 deletions
diff --git a/include/functions.php b/include/functions.php
index 632c1e628..957146f1f 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3212,8 +3212,6 @@
}
function format_article($link, $id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false) {
- global $plugins;
-
if (!$owner_uid) $owner_uid = $_SESSION["uid"];
$rv = array();
@@ -3275,8 +3273,6 @@
$line = db_fetch_assoc($result);
- $plugins->hook('article_before', $line);
-
if ($line["icon_url"]) {
$feed_icon = "<img src=\"" . $line["icon_url"] . "\">";
} else {
@@ -3489,8 +3485,6 @@
$rv['content'] .= "</body></html>";
}
- $plugins->hook('article_after', $rv);
-
return $rv;
}
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 4ad08df32..241896f8b 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -212,8 +212,6 @@
function update_rss_feed($link, $feed, $ignore_daemon = false, $no_cache = false,
$override_url = false) {
- global $plugins;
-
require_once "lib/simplepie/simplepie.inc";
require_once "lib/magpierss/rss_fetch.inc";
require_once 'lib/magpierss/rss_utils.inc';
@@ -559,10 +557,6 @@
}
foreach ($iterator as $item) {
- $hook_params = array("item" => &$item, "feed" => $feed);
-
- $plugins->hook('rss_update_item', $hook_params);
-
if ($_REQUEST['xdebug'] == 2) {
print_r($item);
}