diff options
| author | wjames5 <will@tekimaki.com> | 2010-04-17 22:46:10 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2010-04-17 22:46:10 +0000 |
| commit | d770785b05e10c6359f581450326ebc26646a78c (patch) | |
| tree | 5394542d8cd33baa37c9405e1561658862267b46 | |
| parent | 74e6d7495046fcdc85b757a6e8f4b63ec0756738 (diff) | |
| download | pigeonholes-CVS_HEAD.tar.gz pigeonholes-CVS_HEAD.tar.bz2 pigeonholes-CVS_HEAD.zip | |
SCHEMA CHANGE - liberty_content_types - change content_description to content_name, add column content_name_plural - update all class files and hashes where appropriateCVS_HEAD
| -rw-r--r-- | Pigeonholes.php | 8 | ||||
| -rw-r--r-- | admin/schema_inc.php | 6 | ||||
| -rw-r--r-- | templates/view_table_inc.tpl | 2 |
3 files changed, 10 insertions, 6 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php index 312dc76..7ed0106 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.131 2009/10/01 14:17:03 wjames5 Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.132 2010/04/17 22:46:09 wjames5 Exp $ * * +----------------------------------------------------------------------+ * | Copyright ( c ) 2004, bitweaver.org @@ -17,7 +17,7 @@ * Pigeonholes class * * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.131 $ + * @version $Revision: 1.132 $ * @package pigeonholes */ @@ -45,7 +45,7 @@ class Pigeonholes extends LibertyMime { LibertyMime::LibertyMime(); $this->registerContentType( PIGEONHOLES_CONTENT_TYPE_GUID, array( 'content_type_guid' => PIGEONHOLES_CONTENT_TYPE_GUID, - 'content_description' => 'Pigeonhole', + 'content_name' => 'Pigeonhole', 'handler_class' => 'Pigeonholes', 'handler_package' => 'pigeonholes', 'handler_file' => 'Pigeonholes.php', @@ -175,7 +175,7 @@ class Pigeonholes extends LibertyMime { $query = " SELECT pigm.*, lc.`content_id`, lc.`last_modified`, lc.`user_id`, lc.`title`, lc.`content_type_guid`, lc.`created`, - lct.`content_description`, lcds.`data` AS `summary`, + lct.`content_name`, lcds.`data` AS `summary`, uu.`login`, uu.`real_name`, lf.`storage_path` $select FROM `".BIT_DB_PREFIX."pigeonhole_members` pigm INNER JOIN `".BIT_DB_PREFIX."pigeonholes` pig ON ( pig.`content_id` = pigm.`parent_id` ) diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 5ac9e7e..df9b8db 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -50,4 +50,8 @@ $gBitInstaller->registerUserPermissions( PIGEONHOLES_PKG_NAME, array( //array( 'p_pigeonholes_admin', 'Can administer all aspects of pigeonholes', 'editors', PIGEONHOLES_PKG_NAME ), ) ); -?> +// Requirements +$gBitInstaller->registerRequirements( PIGEONHOLES_PKG_NAME, array( + 'liberty' => array( 'min' => '2.1.4' ), +)); + diff --git a/templates/view_table_inc.tpl b/templates/view_table_inc.tpl index b7c1492..dfb2f2b 100644 --- a/templates/view_table_inc.tpl +++ b/templates/view_table_inc.tpl @@ -28,7 +28,7 @@ {if $gBitSystem->isFeatureActive( 'pigeonholes_member_thumb' ) && $member.thumbnail_url.$size} <img src="{$member.thumbnail_url.$size}" alt="{$member.title|escape}" title="{$member.title|escape}" /><br /> {/if} - {$member.title|escape}{if $gBitSystem->isFeatureActive( 'pigeonholes_display_content_type' )} <small>{tr}{$member.content_description}{/tr}</small>{/if} + {$member.title|escape}{if $gBitSystem->isFeatureActive( 'pigeonholes_display_content_type' )} <small>{tr}{$member.content_name}{/tr}</small>{/if} </a> </li> {/foreach} |
