mirror of
				https://github.com/Mibew/mibew.git
				synced 2025-10-31 10:31:07 +03:00 
			
		
		
		
	Rename "StyleInterface::configurations" to "getConfigurations"
This commit is contained in:
		
							parent
							
								
									75703ecadd
								
							
						
					
					
						commit
						2c28a620b9
					
				| @ -442,13 +442,13 @@ function setup_chatview(Thread $thread) | ||||
| 
 | ||||
|     // Load dialogs style options
 | ||||
|     $chat_style = new ChatStyle(ChatStyle::currentStyle()); | ||||
|     $style_config = $chat_style->configurations(); | ||||
|     $style_config = $chat_style->getConfigurations(); | ||||
|     $data['chat']['windowsParams']['mail'] | ||||
|         = $style_config['mail']['window_params']; | ||||
| 
 | ||||
|     // Load core style options
 | ||||
|     $page_style = new PageStyle(PageStyle::currentStyle()); | ||||
|     $style_config = $page_style->configurations(); | ||||
|     $style_config = $page_style->getConfigurations(); | ||||
|     $data['chat']['windowsParams']['history'] | ||||
|         = $style_config['history']['window_params']; | ||||
| 
 | ||||
|  | ||||
| @ -72,7 +72,7 @@ abstract class AbstractStyle | ||||
|      * @return array Style configurations | ||||
|      * @throws \RuntimeException | ||||
|      */ | ||||
|     public function configurations() | ||||
|     public function getConfigurations() | ||||
|     { | ||||
|         $config_file = MIBEW_FS_ROOT . '/' . $this->getFilesPath() . '/config.ini'; | ||||
| 
 | ||||
|  | ||||
| @ -41,7 +41,7 @@ class InvitationStyle extends AbstractStyle implements StyleInterface | ||||
|      * | ||||
|      * @return array Style configurations | ||||
|      */ | ||||
|     public function configurations() | ||||
|     public function getConfigurations() | ||||
|     { | ||||
|         return array(); | ||||
|     } | ||||
|  | ||||
| @ -67,7 +67,7 @@ interface StyleInterface | ||||
|      * | ||||
|      * @param array $name Style's configuration params | ||||
|      */ | ||||
|     public function configurations(); | ||||
|     public function getConfigurations(); | ||||
| 
 | ||||
|     /** | ||||
|      * Returns name of the style related with the object | ||||
|  | ||||
| @ -53,7 +53,7 @@ function generate_button( | ||||
|     // Get popup window configurations
 | ||||
|     if ($style) { | ||||
|         $chat_style = new ChatStyle($style); | ||||
|         $chat_configurations = $chat_style->configurations(); | ||||
|         $chat_configurations = $chat_style->getConfigurations(); | ||||
|         $popup_options = $chat_configurations['chat']['window_params']; | ||||
|     } else { | ||||
|         $popup_options = "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1"; | ||||
|  | ||||
| @ -34,7 +34,7 @@ if (!in_array($preview, $style_list)) { | ||||
| } | ||||
| 
 | ||||
| $preview_style = new PageStyle($preview); | ||||
| $style_config = $preview_style->configurations(); | ||||
| $style_config = $preview_style->getConfigurations(); | ||||
| 
 | ||||
| $screenshots = array(); | ||||
| foreach ($style_config['screenshots'] as $name => $desc) { | ||||
|  | ||||
| @ -40,7 +40,7 @@ if (!in_array($preview, $style_list)) { | ||||
| 
 | ||||
| $chat_style = new ChatStyle($preview); | ||||
| 
 | ||||
| $style_config = $chat_style->configurations(); | ||||
| $style_config = $chat_style->getConfigurations(); | ||||
| 
 | ||||
| $screenshots = array(); | ||||
| foreach ($style_config['screenshots'] as $name => $desc) { | ||||
|  | ||||
| @ -47,13 +47,13 @@ $page['geoWindowParams'] = Settings::get('geolinkparams'); | ||||
| 
 | ||||
| // Load dialogs style options
 | ||||
| $chat_style = new ChatStyle(ChatStyle::currentStyle()); | ||||
| $style_config = $chat_style->configurations(); | ||||
| $style_config = $chat_style->getConfigurations(); | ||||
| $page['chatStyles.chatWindowParams'] = $style_config['chat']['window_params']; | ||||
| $page['coreStyles.inviteWindowParams'] = $style_config['chat']['window_params']; | ||||
| 
 | ||||
| // Load page style options
 | ||||
| $page_style = new PageStyle(PageStyle::currentStyle()); | ||||
| $style_config = $page_style->configurations(); | ||||
| $style_config = $page_style->getConfigurations(); | ||||
| $page['coreStyles.threadTag'] = $style_config['users']['thread_tag']; | ||||
| $page['coreStyles.visitorTag'] = $style_config['users']['visitor_tag']; | ||||
| $page['coreStyles.trackedUserWindowParams'] = $style_config['tracked']['user_window_params']; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user