Pastoid

The page you are looking at now is at this URL: http://pastoid.com/byl

This paste was last updated on December 13, 2009 at 9:20 pm.

Pasted Coderaw

Index: tag.php
===================================================================
--- tag.php	(revision 3884)
+++ tag.php	(working copy)
@@ -79,7 +79,10 @@
 	public static function rewrite_tag_exists($rule, $slug, $parameters)
 	{
 		$tag = Tag::get($rule->named_arg_values['tag']);
-		return $tag instanceOf Tag;
+		if ( !$tag instanceOf Tag ) {
+			return FALSE;
+		}
+		return Posts::count_by_tag($tag->tag_text, Post::status('published')) > 0;
 	}
 
 	/**
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 3
Is this paste spam?
<Hide