summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2010-04-17 15:36:08 +0000
committerwjames5 <will@tekimaki.com>2010-04-17 15:36:08 +0000
commit97956a5c5d06ebb8871bc23ba9de2e387748cdcd (patch)
tree0e5dcd409c5075d8e64637aa205d7a9ff9fa2bc5 /modules
parent198d1a5d4adefbac78a7d5fac1a6cd85581dabed (diff)
downloadsearch-97956a5c5d06ebb8871bc23ba9de2e387748cdcd.tar.gz
search-97956a5c5d06ebb8871bc23ba9de2e387748cdcd.tar.bz2
search-97956a5c5d06ebb8871bc23ba9de2e387748cdcd.zip
step three of contenttype name plural - replace all instances where name is accessed though type hash with get name method call, still no schema change requiredpre_ctype_desc_name_schmeachange
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_global_search.php6
-rw-r--r--modules/mod_package_search.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/mod_global_search.php b/modules/mod_global_search.php
index 4fe9d72..0103a8a 100644
--- a/modules/mod_global_search.php
+++ b/modules/mod_global_search.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_search/modules/mod_global_search.php,v 1.11 2009/10/01 14:17:04 wjames5 Exp $
+ * $Header: /cvsroot/bitweaver/_bit_search/modules/mod_global_search.php,v 1.12 2010/04/17 15:36:08 wjames5 Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
*
- * $Id: mod_global_search.php,v 1.11 2009/10/01 14:17:04 wjames5 Exp $
+ * $Id: mod_global_search.php,v 1.12 2010/04/17 15:36:08 wjames5 Exp $
* @author Luis Argerich (lrargerich@yahoo.com)
* @package search
* @subpackage modules
@@ -26,7 +26,7 @@ if( empty( $contentTypes ) ) {
if (SearchLib::has_permission($cType["content_type_guid"])
and ( ! $gBitSystem->getConfig('search_restrict_types') ||
$gBitSystem->getConfig('search_pkg_'.$cType["content_type_guid"]) ) ) {
- $contentTypes[$cType['content_type_guid']] = $cType['content_description'];
+ $contentTypes[$cType['content_type_guid']] = $gLibertySystem->getContentTypeName( $cType['content_type_guid'] );
}
}
}
diff --git a/modules/mod_package_search.php b/modules/mod_package_search.php
index a22b69f..bab98c8 100644
--- a/modules/mod_package_search.php
+++ b/modules/mod_package_search.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_search/modules/mod_package_search.php,v 1.15 2009/10/01 14:17:04 wjames5 Exp $
+ * $Header: /cvsroot/bitweaver/_bit_search/modules/mod_package_search.php,v 1.16 2010/04/17 15:36:08 wjames5 Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
*
- * $Id: mod_package_search.php,v 1.15 2009/10/01 14:17:04 wjames5 Exp $
+ * $Id: mod_package_search.php,v 1.16 2010/04/17 15:36:08 wjames5 Exp $
* @author Luis Argerich (lrargerich@yahoo.com)
* @package search
* @subpackage modules
@@ -38,7 +38,7 @@ require_once(SEARCH_PKG_PATH."search_lib.php");
if (SearchLib::has_permission($cType["content_type_guid"])
and ( ! $gBitSystem->getConfig('search_restrict_types') ||
$gBitSystem->getConfig('search_pkg_'.$cType["content_type_guid"]) ) ) {
- $contentTypes[$cType['content_type_guid']] = $cType['content_description'];
+ $contentTypes[$cType['content_type_guid']] = $gLibertySystem->getContentTypeName( $cType['content_type_guid'] );
}
}
}