Removed dead code.
This commit is contained in:
		@@ -201,7 +201,6 @@ class File_redirection extends Memcached_DataObject
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if ($short_url) {
 | 
					        if ($short_url) {
 | 
				
			||||||
            $short_url = (string)$short_url;
 | 
					            $short_url = (string)$short_url;
 | 
				
			||||||
if(1) {
 | 
					 | 
				
			||||||
            // store it
 | 
					            // store it
 | 
				
			||||||
            $file = File::staticGet('url', $long_url);
 | 
					            $file = File::staticGet('url', $long_url);
 | 
				
			||||||
            if (empty($file)) {
 | 
					            if (empty($file)) {
 | 
				
			||||||
@@ -221,7 +220,6 @@ if(1) {
 | 
				
			|||||||
                $file_redir->file_id = $file_id;
 | 
					                $file_redir->file_id = $file_id;
 | 
				
			||||||
                $file_redir->insert();
 | 
					                $file_redir->insert();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
            return $short_url;
 | 
					            return $short_url;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return $long_url;
 | 
					        return $long_url;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -496,11 +496,6 @@ function common_linkify($url) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $attrs = array('href' => $longurl, 'rel' => 'external');
 | 
					    $attrs = array('href' => $longurl, 'rel' => 'external');
 | 
				
			||||||
if(0){
 | 
					 | 
				
			||||||
    if ($longurl !== $url) {
 | 
					 | 
				
			||||||
        $attrs['title'] = $longurl;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
    return XMLStringer::estring('a', $attrs, $display);
 | 
					    return XMLStringer::estring('a', $attrs, $display);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user