1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) { 9 header("location: index.php"); 10 exit; 11} 12 13/** 14 * @param $installer 15 */ 16function post_20091214_perspective_management_tiki($installer) 17{ 18 $result = $installer->query('SELECT perspectiveId, pref, value FROM tiki_perspective_preferences'); 19 while ($row = $result->fetchRow()) { 20 $installer->query( 21 'UPDATE tiki_perspective_preferences SET value = ? WHERE perspectiveId = ? and pref = ?', 22 [serialize($row['value']), $row['perspectiveId'], $row['pref']] 23 ); 24 } 25} 26