This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ -319,19 +319,25 @@ class Upgrade_Controller extends Admin_Controller { | |
if ($table_prefix) | |
{ | |
$find = array( | |
'CREATE TABLE IF NOT EXISTS `', | |
'INSERT INTO `', | |
+ 'INSERT IGNORE INTO `', | |
'ALTER TABLE `', | |
- 'UPDATE `' | |
+ 'UPDATE `', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* Base Controller | |
* Enforces basic access control, ie. for private deployments | |
* | |
* PHP version 5 | |
* LICENSE: This source file is subject to LGPL license | |
* that is available through the world-wide-web at the following URI: | |
* http://www.gnu.org/copyleft/lesser.html | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Implementation of hook_nodeapi() | |
* Add gids parameter to node/XXX/edit urls - so noderelationships has context | |
*/ | |
function og_country_nodeapi(&$node, $op) { | |
if ($op != 'prepare') return; | |
if (!empty($_REQUEST['gids'])) return; | |
if (arg(2) == 'edit' && $node->og_groups) { |
NewerOlder