Browse Source

fix item

pull/1/head
Mike Macgirvin 11 years ago
parent
commit
49c9860e61
3 changed files with 3 additions and 1 deletions
  1. +1
    -0
      database.sql
  2. +1
    -1
      mod/item.php
  3. +1
    -0
      update.php

+ 1
- 0
database.sql View File

@ -178,6 +178,7 @@ CREATE TABLE IF NOT EXISTS `item` (
KEY `uid` (`uid`),
KEY `contact-id` (`contact-id`),
KEY `type` (`type`),
KEY `wall` (`wall`),
KEY `parent` (`parent`),
KEY `parent-uri` (`parent-uri`),
KEY `created` (`created`),


+ 1
- 1
mod/item.php View File

@ -116,7 +116,7 @@ function item_post(&$a) {
$r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`,
`author-name`, `author-link`, `author-avatar`, `created`,
`edited`, `changed`, `uri`, `title`, `body`, `location`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
VALUES( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
intval($profile_uid),
dbesc($post_type),
intval($wall),


+ 1
- 0
update.php View File

@ -16,4 +16,5 @@ function update_1000() {
function update_1001() {
q("ALTER TABLE `item` ADD `wall` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `type` ");
q("ALTER TABLE `item` ADD INDEX ( `wall` )");
}

Loading…
Cancel
Save