Issue-#3873
Replace deprecated functions with new syntax.
This commit is contained in:
		
					parent
					
						
							
								9eb1f4b9c3
							
						
					
				
			
			
				commit
				
					
						0dfa57948f
					
				
			
		
					 124 changed files with 819 additions and 679 deletions
				
			
		| 
						 | 
				
			
			@ -37,14 +37,14 @@
 | 
			
		|||
		if (is_null($uid)) {
 | 
			
		||||
			$uid = get_theme_uid();
 | 
			
		||||
		}
 | 
			
		||||
		$schema = get_pconfig($uid, 'frio', 'schema');
 | 
			
		||||
		$schema = Friendica\Core\PConfig::get($uid, 'frio', 'schema');
 | 
			
		||||
		if (($schema) && ($schema != '---')) {
 | 
			
		||||
			if (file_exists('view/theme/frio/schema/'.$schema.'.php')) {
 | 
			
		||||
				$schemefile = 'view/theme/frio/schema/'.$schema.'.php';
 | 
			
		||||
				require_once($schemefile);
 | 
			
		||||
			}
 | 
			
		||||
		} else {
 | 
			
		||||
			$nav_bg = get_pconfig($uid, 'frio', 'nav_bg');
 | 
			
		||||
			$nav_bg = Friendica\Core\PConfig::get($uid, 'frio', 'nav_bg');
 | 
			
		||||
		}
 | 
			
		||||
		if (!$nav_bg) {
 | 
			
		||||
			$nav_bg = "#708fa0";
 | 
			
		||||
| 
						 | 
				
			
			@ -66,8 +66,8 @@ else
 | 
			
		|||
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
 | 
			
		||||
<?php
 | 
			
		||||
	if(x($page,'nav') && (!$minimal)){
 | 
			
		||||
	echo	str_replace("~config.sitename~",get_config('config','sitename'),
 | 
			
		||||
			str_replace("~system.banner~",get_config('system','banner'),
 | 
			
		||||
	echo	str_replace("~config.sitename~",Friendica\Core\Config::get('config','sitename'),
 | 
			
		||||
			str_replace("~system.banner~",Friendica\Core\Config::get('system','banner'),
 | 
			
		||||
			$page['nav']
 | 
			
		||||
	));};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,11 +18,14 @@
 | 
			
		|||
 *    'version' => Schema version
 | 
			
		||||
 *    'overwrites' => Variables which overwriting custom settings
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
use Friendica\Core\PConfig;
 | 
			
		||||
 | 
			
		||||
function get_schema_info($schema){
 | 
			
		||||
 | 
			
		||||
	$theme = current_theme();
 | 
			
		||||
	$themepath = "view/theme/" . $theme . "/";
 | 
			
		||||
	$schema = get_pconfig(local_user(),'frio', 'schema');
 | 
			
		||||
	$schema = PConfig::get(local_user(),'frio', 'schema');
 | 
			
		||||
 | 
			
		||||
	$info=Array(
 | 
			
		||||
		'name' => $schema,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,8 +21,8 @@
 | 
			
		|||
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
 | 
			
		||||
<?php
 | 
			
		||||
	if(x($page,'nav')) {
 | 
			
		||||
	echo	str_replace("~config.sitename~",get_config('config','sitename'),
 | 
			
		||||
			str_replace("~system.banner~",get_config('system','banner'),
 | 
			
		||||
	echo	str_replace("~config.sitename~",Friendica\Core\Config::get('config','sitename'),
 | 
			
		||||
			str_replace("~system.banner~",Friendica\Core\Config::get('system','banner'),
 | 
			
		||||
			$page['nav']
 | 
			
		||||
	));};
 | 
			
		||||
?>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue