<commit_before><commit_msg>Added script to set category URLs of the current language to NULL.<commit_after><?php


/**
 * @author <NAME>, w3concepts AG
 * @copyright Copyright &copy; 2010, w3concepts AG
 */

class Adm_Script_Removecaturls extends Aitsu_Adm_Script_Abstract {

	protected $_medium = null;

	public static function getName() {

		return Aitsu_Translate :: translate('Remove category URLs');
	}

	public function doDrop() {

		Aitsu_Db :: query('' .
		'update _cat_lang set url = null where idlang = :idlang', array (
			':idlang' => Aitsu_Registry :: get()->session->currentLanguage
		));

		return Aitsu_Adm_Script_Response :: factory(Aitsu_Translate :: translate('URLs removed.'));
	}

}
{'fraction_non_alphanumeric': 0.12091038406827881, 'fraction_numerical': 0.008534850640113799, 'mean_word_length': 4.866666666666666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3309919', 'n_tokens_mistral': 240, 'n_tokens_neox': 213, 'n_words': 60}