summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--edit_structure_inc.php4
-rw-r--r--plugins/format.pearwiki_general.php5
2 files changed, 5 insertions, 4 deletions
diff --git a/edit_structure_inc.php b/edit_structure_inc.php
index 6e2f192..799dbf2 100644
--- a/edit_structure_inc.php
+++ b/edit_structure_inc.php
@@ -3,7 +3,7 @@
* edit_structure_inc
*
* @author Christian Fowler>
- * @version $Revision: 1.23 $
+ * @version $Revision: 1.24 $
* @package liberty
* @subpackage functions
*/
@@ -75,7 +75,7 @@ if( !@BitBase::verifyId( $_REQUEST["structure_id"] ) ) {
header( "Location: ".$_SERVER['PHP_SELF'].'?structure_id='.$gStructure->mInfo["parent_id"] );
die;
} else {
- vd( $gStructure->mErrors );
+ error_log( "Error removing structure: " . vc($gStructure->mErrors ) );
}
} elseif( $_REQUEST["action"] == 'remove' ) {
$gBitSystem->setBrowserTitle( 'Confirm removal of '.$gContent->getTitle() );
diff --git a/plugins/format.pearwiki_general.php b/plugins/format.pearwiki_general.php
index 8ac29e5..aa57fdd 100644
--- a/plugins/format.pearwiki_general.php
+++ b/plugins/format.pearwiki_general.php
@@ -78,13 +78,14 @@ function pearwiki_general_verify_data( &$pParamHash ) {
}
function pearwiki_general_parse_data( $parser_fmt, &$pParseHash, &$pCommonObject ) {
+ global $gBitSystem;
+
if (!defined('PAGE_SEP')) {
define('PAGE_SEP', 'PAGE MARKER HERE*&^%$#^$%*PAGEMARKERHERE');
}
-
$parser = Text_Wiki::singleton($parser_fmt);
if (PEAR::isError($parser)) {
- vd($parser);
+ $gBitSystem->fatalError("PEAR Wiki Parser Error", "There was an unknown error while constructing the parser.");
die();
}
global $gBitSystem;