<?php

function upgrade_20141003_change_style_pref_to_theme_tiki($installer)
{
	$tiki_preferences = $installer->table('tiki_preferences');
	$style = $tiki_preferences->fetchOne('value', array('name' => 'style'));

	$tiki_preferences->update(
		array(
			'value' => str_replace('.css', '', $style)
		),
		array(
			'name' => 'theme_active',
			'value' => 'legacy',
		)
	);
}


Set the new bootstrap theme pref 'theme_active' to the current old 'styles' setting if set to using legacy as the styles directory no longer exists. Style option -> theme option migration TODO when there is one
[FIX] Set the new bootstrap theme pref 'theme_active' to the current old 'styles' setting if set to using legacy as the styles directory no longer exists.
Style option -> theme option migration TODO when there is one

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@52706 b456876b-0849-0410-b77d-98878d47e9d5
