Index: install/install_toolkit.php
===================================================================
--- install/install_toolkit.php (revision 13203)
+++ install/install_toolkit.php (working copy)
@@ -498,7 +498,7 @@
function SaveConfig($silent = false)
{
if (!is_writable($this->INIFile) && !is_writable(dirname($this->INIFile))) {
- trigger_error('Cannot write to "' . $this->INIFile . '" file.', $silent ? E_USER_NOTICE : E_USER_ERROR);
+ trigger_error('Cannot write to "' . $this->INIFile . '" file.', $silent ? E_USER_WARNING : E_USER_ERROR);
return ;
}
Index: kernel/application.php
===================================================================
--- kernel/application.php (revision 13203)
+++ kernel/application.php (working copy)
@@ -730,7 +730,7 @@
function getFilename($prefix, $id, $category_id = null)
{
if ($prefix == 'c') {
- trigger_error('Method "' . __FUNCTION__ . '" no longer work with "c" prefix. Please use "getCategoryCache" method instead.', E_USER_ERROR);
+ trigger_error('Method "' . __FUNCTION__ . '" no longer work with "c" prefix. Please use "getCategoryCache" method instead.', defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_WARNING);
return false;
}
Index: kernel/db/db_event_handler.php
===================================================================
--- kernel/db/db_event_handler.php (revision 13203)
+++ kernel/db/db_event_handler.php (working copy)
@@ -467,7 +467,7 @@
if ($this->Application->isDebugMode()) {
$this->Application->Debugger->appendTrace();
}
- trigger_error('ItemLoad Permission Failed for prefix [' . $event->getPrefixSpecial() . '] in checkItemStatus, leading to "404 Not Found"', E_USER_WARNING);
+ trigger_error('ItemLoad Permission Failed for prefix [' . $event->getPrefixSpecial() . '] in checkItemStatus, leading to "404 Not Found"', E_USER_NOTICE);
header('HTTP/1.0 404 Not Found');
@@ -537,7 +537,7 @@
$this->Application->Debugger->appendTrace();
}
- trigger_error('ItemLoad Permission Failed for prefix ['.$event->getPrefixSpecial().'] in '.($status_checked ? 'checkItemStatus' : 'CheckPermission').'', E_USER_WARNING);
+ trigger_error('ItemLoad Permission Failed for prefix ['.$event->getPrefixSpecial().'] in '.($status_checked ? 'checkItemStatus' : 'CheckPermission').'', E_USER_NOTICE);
$template = $this->Application->isAdmin ? 'no_permission' : $this->Application->ConfigValue('NoPermissionTemplate');
if (MOD_REWRITE) {
Index: kernel/db/db_tag_processor.php
===================================================================
--- kernel/db/db_tag_processor.php (revision 13203)
+++ kernel/db/db_tag_processor.php (working copy)
@@ -86,7 +86,7 @@
$separator = $this->Application->ParseBlock($block_params);
$filter_menu = $this->Application->getUnitOption($this->Prefix,'FilterMenu');
if (!$filter_menu) {
- trigger_error('no filters defined for prefix '.$this->Prefix.', but DrawFilterMenu tag used', E_USER_WARNING);
+ trigger_error('no filters defined for prefix '.$this->Prefix.', but DrawFilterMenu tag used', E_USER_NOTICE);
return '';
}
@@ -147,7 +147,7 @@
{
$refresh_intervals = $this->Application->ConfigValue('AutoRefreshIntervals');
if (!$refresh_intervals) {
- trigger_error('no filters defined for prefix '.$this->Prefix.', but DrawAutoRefreshMenu tag used', E_USER_WARNING);
+ trigger_error('no refresh intervals defined for prefix '.$this->Prefix.', but DrawAutoRefreshMenu tag used', E_USER_NOTICE);
return '';
}
@@ -2527,7 +2527,7 @@
$title_presets = $this->Application->getUnitOption($this->Prefix, 'TitlePresets');
if (!array_key_exists($preset_name, $title_presets)) {
- trigger_error('Title preset not specified or missing (in tag "' . $this->getPrefixSpecial() . ':' . __METHOD__ . '")', E_USER_WARNING);
+ trigger_error('Title preset not specified or missing (in tag "' . $this->getPrefixSpecial() . ':' . __METHOD__ . '")', E_USER_NOTICE);
return false;
}
Index: kernel/db/dblist.php
===================================================================
--- kernel/db/dblist.php (revision 13203)
+++ kernel/db/dblist.php (working copy)
@@ -570,7 +570,7 @@
$debugger->appendTrace();
}
- trigger_error('Depricated method kDBList->SetWhereClause. Use kDBList->addFilter instead.', E_USER_ERROR);
+ trigger_error('Depricated method kDBList->SetWhereClause. Use kDBList->addFilter instead.', defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_NOTICE);
}
/**
@@ -655,7 +655,7 @@
}
if (!isset($this->Fields[$field]) && $field != 'RAND()' && !$is_expression) {
- trigger_error('Incorrect sorting defined (field = '.$field.'; direction = '.$direction.') in config for prefix '.$this->Prefix.'', E_USER_WARNING);
+ trigger_error('Incorrect sorting defined (field = '.$field.'; direction = '.$direction.') in config for prefix '.$this->Prefix.'', E_USER_NOTICE);
}
$this->OrderFields[] = Array($field, $direction, $is_expression);
Index: kernel/event_manager.php
===================================================================
--- kernel/event_manager.php (revision 13203)
+++ kernel/event_manager.php (working copy)
@@ -283,7 +283,7 @@
$unit_config_reader->loadConfig($event->Prefix);
if( !$this->Application->prefixRegistred($event->Prefix) )
{
- trigger_error('Prefix '.$event->Prefix.' not registred (requested event '.$event->Name.')', E_USER_NOTICE);
+ trigger_error('Prefix '.$event->Prefix.' not registred (requested event '.$event->Name.')', E_USER_WARNING);
return false;
}
}
Index: kernel/nparser/nparser.php
===================================================================
--- kernel/nparser/nparser.php (revision 13203)
+++ kernel/nparser/nparser.php (working copy)
@@ -1031,7 +1031,7 @@
$this->Application->Debugger->appendTrace();
}
- trigger_error('Unknown key part "' . $key . '" used in "key" parameter of tag.', E_USER_ERROR);
+ trigger_error('Unknown key part "' . $key . '" used in "key" parameter of tag.', E_USER_WARNING);
}
}
Index: kernel/utility/http_query.php
===================================================================
--- kernel/utility/http_query.php (revision 13203)
+++ kernel/utility/http_query.php (working copy)
@@ -121,7 +121,7 @@
foreach ($this->specialsToRemove as $prefix_special => $flag) {
if ($flag && strpos($prefix_special, '.') === false) {
unset($this->specialsToRemove[$prefix_special]);
- trigger_error('Incorrect usage of "remove_specials['.$prefix_special.']" field (no special found)', E_USER_WARNING);
+ trigger_error('Incorrect usage of "remove_specials['.$prefix_special.']" field (no special found)', E_USER_NOTICE);
}
}
$this->_Params = $this->removeSpecials($this->_Params);
Index: kernel/utility/unit_config_reader.php
===================================================================
--- kernel/utility/unit_config_reader.php (revision 13203)
+++ kernel/utility/unit_config_reader.php (working copy)
@@ -554,7 +554,7 @@
if (is_array($hooks) && count($hooks) > 0) {
foreach ($hooks as $hook) {
if (isset($config['ParentPrefix']) && $hook['HookToPrefix'] == $config['ParentPrefix']) {
- trigger_error('Depricated Hook Usage [prefix: '.$config['Prefix'].'; do_prefix: '.$hook['DoPrefix'].'] use #PARENT# as HookToPrefix value, where HookToPrefix is same as ParentPrefix', E_USER_NOTICE);
+ trigger_error('Depricated Hook Usage [prefix: '.$config['Prefix'].'; do_prefix: '.$hook['DoPrefix'].'] use #PARENT# as HookToPrefix value, where HookToPrefix is same as ParentPrefix', defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_NOTICE);
}
if ($hook['HookToPrefix'] == '') {
@@ -593,7 +593,7 @@
foreach ($config['AggregateTags'] as $aggregate_tag) {
if (isset($config['ParentPrefix'])) {
if ($aggregate_tag['AggregateTo'] == $config['ParentPrefix']) {
- trigger_error('Depricated Aggregate Tag Usage [prefix: '.$config['Prefix'].'; AggregateTo: '.$aggregate_tag['AggregateTo'].'] use #PARENT# as AggregateTo value, where AggregateTo is same as ParentPrefix', E_USER_NOTICE);
+ trigger_error('Depricated Aggregate Tag Usage [prefix: '.$config['Prefix'].'; AggregateTo: '.$aggregate_tag['AggregateTo'].'] use #PARENT# as AggregateTo value, where AggregateTo is same as ParentPrefix', defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_NOTICE);
}
if ($aggregate_tag['AggregateTo'] == '#PARENT#') {
Index: units/helpers/custom_fields_helper.php
===================================================================
--- units/helpers/custom_fields_helper.php (revision 13203)
+++ units/helpers/custom_fields_helper.php (working copy)
@@ -46,7 +46,7 @@
$this->Application->Debugger->appendTrace();
}
- trigger_error('Invalid symbol in ValueList field [' . substr($values_list, 0, 100) . ' ...]' , E_USER_NOTICE);
+ trigger_error('Invalid symbol in ValueList field [' . substr($values_list, 0, 100) . ' ...]' , E_USER_WARNING);
return Array ();
}
Index: units/helpers/sections_helper.php
===================================================================
--- units/helpers/sections_helper.php (revision 13203)
+++ units/helpers/sections_helper.php (working copy)
@@ -236,7 +236,7 @@
$current_data = isset($this->Tree[$section_name]) ? $this->Tree[$section_name] : Array();
if ($current_data) {
- trigger_error('Section "' . $section_name . '" declaration (originally defined in "' . $current_data['SectionPrefix'] . '") was overwriten from "' . $prefix . '"', E_USER_NOTICE);
+ trigger_error('Section "' . $section_name . '" declaration (originally defined in "' . $current_data['SectionPrefix'] . '") was overwriten from "' . $prefix . '"', E_USER_WARNING);
}
$this->Tree[$section_name] = array_merge_recursive2($current_data, $section_params);