1 安装出错:
1.1 /install/database/database.php
- CREATE TABLE IF NOT EXISTS article_type (
-
id_type int(11) unsigned NOT NULL auto_increment,
-
type varchar(50) collate utf8_unicode_ci NOT NULL,
-
ordering int(11) default 0,
-
description text NOT NULL,
-
type_flag TINYINT( 1 ) NOT NULL default 0,
-
PRIMARY KEY (id_type)
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 COMMENT='0.9.7';
- INSERT INTO setting VALUES (NULL, 'default_admin_lang', 'en', NULL);
-
INSERT INTO setting VALUES (NULL, 'ionize_version', '0.9.7', NULL);
-
INSERT INTO setting VALUES (NULL, 'media_upload_mode', 'multiple', NULL);
同理需要修改database.xml
1.2 /install/demo_data.sql
- DELETE FROM `setting` WHERE `name`='site_title';
-
INSERT INTO `setting` VALUES(NULL, 'site_title', 'My Website', 'en');
-
-
INSERT INTO `setting` VALUES (NULL,'thumb_430','width,430,,',NULL);
-
INSERT INTO `setting` VALUES (NULL,'thumb_540','width,540,,',NULL);
-
INSERT INTO `setting` VALUES (NULL,'thumb_150','width,150,true,true',NULL);
-
INSERT INTO `setting` VALUES (NULL,'thumb_940','width,940,,',NULL);
-
INSERT INTO `setting` VALUES (NULL,'thumb_280','width,280,,true',NULL);
2 Static translations的This module has default language files for:出错
/application/controllers/admin/translation.php 596行
- function _get_modules_translation_files()
-
{
-
$data = array();
-
-
// Installed Modules : includes the $modules var
-
require(APPPATH.'config/modules.php');
-
-
// Sort modules by name
-
natcasesort($modules);
-
-
// Modules languages files : Including. Can be empty
-
foreach($modules as $module)
-
{
-
$paths = glob(MODPATH.$module.'/language/*');
-
-
foreach($paths as $path)
-
{
-
if (is_file($path.'/'.strtolower($module).'_lang'.EXT))
-
{
-
//$path = substr($path, 0, -1);
-
$data[$module][] = array_pop(explode('/', $path));
-
}
-
-
}
-
}
-
-
return $data;
-
}
3 不能新建Article的Bug
修改/application/models/article_model.php 621行
- function save($data, $lang_data)
-
{
-
// New article : Created field
-
if( ! $data['id_article'] )
-
$data['created'] = $data['updated'] = date('Y-m-d H:i:s');
-
// Existing article : Update date
-
else
-
$data['updated'] = date('Y-m-d H:i:s');
-
-
// Be sure URLs are unique
-
$this->set_unique_urls($lang_data, $data['id_article']);
-
-
-
// Dates
-
$data['publish_on'] = ($data['publish_on']) ? getMysqlDatetime($data['publish_on']) : '0000-00-00';
-
$data['publish_off'] = ($data['publish_off']) ? getMysqlDatetime($data['publish_off']) : '0000-00-00';
-
$data['comment_expire'] = ($data['comment_expire']) ? getMysqlDatetime($data['comment_expire']) : '0000-00-00';
-
$data['logical_date'] = ($data['logical_date']) ? getMysqlDatetime($data['logical_date']) : '0000-00-00';
-
-
//others by chenxf
-
$data['indexed'] = intval($data['indexed']);
-
$data['id_category'] = intval($data['id_category']);
-
$data['flag'] = intval($data['flag']);
-
-
// Article saving
-
return parent::save($data, $lang_data);
-
}
阅读(825) | 评论(0) | 转发(0) |