From 8a160873a92ee6cedfb8bcd47ebcf8dcf8d4ae51 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 6 Dec 2009 14:56:08 -0500 Subject: [PATCH] rework buy print url fix to take advantage of filtering --- widgets/GraphicalNavigationWidget.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/widgets/GraphicalNavigationWidget.inc b/widgets/GraphicalNavigationWidget.inc index d489bf0..4aad79e 100644 --- a/widgets/GraphicalNavigationWidget.inc +++ b/widgets/GraphicalNavigationWidget.inc @@ -44,8 +44,8 @@ class GraphicalNavigationWidget extends WP_Widget { * Handles hitting the global namespace for you. */ function comicpress_get_buy_print_url($url = '') { - global $buy_print_url; - return $buy_print_url; + $comicpress_options = comicpress_load_options(); + return $comicpress_options['buy_print_url']; } /** @@ -135,10 +135,9 @@ class GraphicalNavigationWidget extends WP_Widget { $id = $temp_id; break; case 'buyprint': - $comicpress_options = comicpress_load_options(); ?>