And again, and again, and again, ... some more notices removed (#5601)
* And again, and again, and again, ... some more notices removed * And some more notices ... * Some more place
This commit is contained in:
		
					parent
					
						
							
								e06fc2aa69
							
						
					
				
			
			
				commit
				
					
						880b7177c8
					
				
			
		
					 5 changed files with 11 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,7 @@ function bookmarklet_content(App $a)
 | 
			
		|||
		return $o;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	$referer = normalise_link($_SERVER["HTTP_REFERER"]);
 | 
			
		||||
	$referer = normalise_link(defaults($_SERVER, 'HTTP_REFERER', ''));
 | 
			
		||||
	$page = normalise_link(System::baseUrl() . "/bookmarklet");
 | 
			
		||||
 | 
			
		||||
	if (!strstr($referer, $page)) {
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +43,7 @@ function bookmarklet_content(App $a)
 | 
			
		|||
			'bang' => '',
 | 
			
		||||
			'visitor' => 'block',
 | 
			
		||||
			'profile_uid' => local_user(),
 | 
			
		||||
			'title' => trim($_REQUEST["title"], "*"),
 | 
			
		||||
			'title' => trim(defaults($_REQUEST, 'title', ''), "*"),
 | 
			
		||||
			'content' => $content
 | 
			
		||||
		];
 | 
			
		||||
		$o = status_editor($a, $x, 0, false);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue