<?php
/*
* Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2006 The Nucleus Group
+ * Copyright (C) 2002-2010 The Nucleus Group
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* Part of the code for the Nucleus admin area
*
* @license http://nucleuscms.org/license.txt GNU General Public License
- * @copyright Copyright (C) 2002-2006 The Nucleus Group
- * @version $Id: ENCAPSULATE.php,v 1.1 2006-07-12 07:13:31 kimitake Exp $
+ * @copyright Copyright (C) 2002-2010 The Nucleus Group
+ * @version $Id$
+ * @version $NucleusJP: ENCAPSULATE.php,v 1.4.2.1 2007/08/08 05:32:54 kimitake Exp $
*/
class ENCAPSULATE {
*
* Passes on the amount of results found (for further encapsulation)
*/
- function doEncapsulate($call, $params, $errorMessage = 'No entries') {
+ function doEncapsulate($call, $params, $errorMessage = _ENCAPSULATE_ENCAPSULATE_NOENTRY) {
// start output buffering
ob_start();
$minamount = $this->minamount;
$maxamount = $this->maxamount;
$blogid = $this->blogid;
- $search = $this->search;
+ $search = htmlspecialchars($this->search);
$itemid = $this->itemid;
$prev = $start - $amount;