summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-16 14:45:07 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-16 14:45:07 +0000
commit9538c2a2a3c1fc329e3654eeb7663f17ebf3a858 (patch)
tree4ac3760761ed259b346496a316bd4c850b413686
parent0ed74abc71673c13b72e889b1520c80c0d4d2930 (diff)
Store "Show Internal Links" and "Show DIRECT Links" in blog options table.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@338 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-inst/wp-content/mu-plugins/doc_referers.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/wp-inst/wp-content/mu-plugins/doc_referers.php b/wp-inst/wp-content/mu-plugins/doc_referers.php
index fcaddc6..28cc44a 100644
--- a/wp-inst/wp-content/mu-plugins/doc_referers.php
+++ b/wp-inst/wp-content/mu-plugins/doc_referers.php
@@ -155,6 +155,25 @@ class DOC_Referers {
$ignoreDIRECT = $_GET[ 'ignoreDIRECT' ];
$internal = $_GET[ 'internal' ];
+ if( $ignoreDIRECT == '' ) {
+ $ignoreDIRECT = get_option( 'ignoreDIRECT' );
+ } else {
+ if( get_option( 'ignoreDIRECT' ) == false ) {
+ add_option( 'ignoreDIRECT', $ignoreDIRECT );
+ } else {
+ update_option( 'ignoreDIRECT', $ignoreDIRECT );
+ }
+ }
+ if( $internal == '' ) {
+ $internal = get_option( 'doc_referers_internal' );
+ } else {
+ if( get_option( 'doc_referers_internal' ) == false ) {
+ add_option( 'doc_referers_internal', $internal );
+ } else {
+ update_option( 'doc_referers_internal', $internal );
+ }
+ }
+
if( $action == '' )
{
$action = 'listday';