<commit_before><?php
// (c) Copyright 2002-2013 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function prefs_mobile_list()
{
	global $jquerymobile_version;

	$mobile_themes = array(
		'' => tra('Default'),
		'a' => 'A',
		'b' => 'B',
		'c' => 'C',
		'd' => 'D',
		'e' => 'E',
	);

	return array(

		'mobile_feature' => array(
			'name' => tra('Mobile Access'),
			'description' => tra('New mobile feature since Tiki 7'),
			'help' => 'Mobile',
			'warning' => tra('Experimental. This feature is under development.'),
			'type' => 'flag',
			'dependencies' => array(
				'feature_perspective',
			),
			'default' => 'n',
		),
		'mobile_perspectives' => array(
			'name' => tra('Mobile Perspectives'),
			'description' => tra('New mobile feature since Tiki 7'),
			'help' => 'Mobile',
			'type' => 'text',
			'separator' => ',',
			'filter' => 'int',
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => array(''),
			'profile_reference' => 'perspective',
		),
		'mobile_theme_header' => array(
			'name' => tra('Header Theme'),
            'description' => tra(''),
			'hint' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_theme_content' => array(
			'name' => tra('Content Theme'),
            'description' => tra(''),
			'hint' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_theme_footer' => array(
			'name' => tra('Footer Theme'),
            'description' => tra(''),
			'hint' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_theme_modules' => array(
			'name' => tra('Modules Theme'),
            'description' => tra(''),
			'hint' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_theme_menus' => array(
			'name' => tra('Menus Theme'),
			'description' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_use_latest_lib' => array(
			'name' => tra('Use Latest Library'),
			'description' => tra('Use latest version of the jquery.mobile'),
			'help' => 'Mobile',
			'warning' => tra('Uses latest build from jquery.com CDN.'),
			'type' => 'flag',
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => 'n',
		),
	);
}
<commit_msg>[FIX] Changes added to fix false feedback to the admin when activating or deactivating prefs. Ref:http://dev.tiki.org/item4742.<commit_after><?php
// (c) Copyright 2002-2013 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function prefs_mobile_list()
{
	global $jquerymobile_version;

	$mobile_themes = array(
		'' => tra('Default'),
		'a' => 'A',
		'b' => 'B',
		'c' => 'C',
		'd' => 'D',
		'e' => 'E',
	);

	return array(

		'mobile_feature' => array(
			'name' => tra('Mobile Access'),
			'description' => tra('New mobile feature since Tiki 7'),
			'help' => 'Mobile',
			'warning' => tra('Experimental. This feature is under development.'),
			'type' => 'flag',
			'dependencies' => array(
				'feature_perspective',
			),
			'default' => 'n',
		),
		'mobile_perspectives' => array(
			'name' => tra('Mobile Perspectives'),
			'description' => tra('New mobile feature since Tiki 7'),
			'help' => 'Mobile',
			'type' => 'text',
			'separator' => ',',
			'filter' => 'int',
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => array(),
			'profile_reference' => 'perspective',
		),
		'mobile_theme_header' => array(
			'name' => tra('Header Theme'),
            'description' => tra(''),
			'hint' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_theme_content' => array(
			'name' => tra('Content Theme'),
            'description' => tra(''),
			'hint' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_theme_footer' => array(
			'name' => tra('Footer Theme'),
            'description' => tra(''),
			'hint' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_theme_modules' => array(
			'name' => tra('Modules Theme'),
            'description' => tra(''),
			'hint' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_theme_menus' => array(
			'name' => tra('Menus Theme'),
			'description' => tra('jQuery Mobile Theme'),
			'help' => "http://jquerymobile.com/demos/$jquerymobile_version/#docs/api/themes.html",
			'type' => 'list',
			'options' => $mobile_themes,
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => '',
		),
		'mobile_use_latest_lib' => array(
			'name' => tra('Use Latest Library'),
			'description' => tra('Use latest version of the jquery.mobile'),
			'help' => 'Mobile',
			'warning' => tra('Uses latest build from jquery.com CDN.'),
			'type' => 'flag',
			'dependencies' => array(
				'mobile_feature',
			),
			'default' => 'n',
		),
	);
}

{'fraction_non_alphanumeric': 0.2086764705882353, 'fraction_numerical': 0.0035294117647058825, 'mean_word_length': 3.4538310412573674, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3583843', 'n_tokens_mistral': 2735, 'n_tokens_neox': 2348, 'n_words': 503}