diff options
author | Ben Coburn <btcoburn@silicodon.net> | 2006-09-08 21:34:33 +0200 |
---|---|---|
committer | Ben Coburn <btcoburn@silicodon.net> | 2006-09-08 21:34:33 +0200 |
commit | d818621633e2c687264682f0504869858f9c780d (patch) | |
tree | 47988890038f1229b3040a7deefaf523e075b367 /lib/plugins | |
parent | 4b5f4f4ed319790fe7f0729560616b55c4e64715 (diff) | |
download | rpg-d818621633e2c687264682f0504869858f9c780d.tar.gz rpg-d818621633e2c687264682f0504869858f9c780d.tar.bz2 |
suppress boring errors
Suppress any errors from set_time_limit,
unlink, and file_exists functions.
see: http://www.freelists.org/archives/dokuwiki/09-2006/msg00004.html
darcs-hash:20060908193433-05dcb-013617431870ab5bfb2ce8c6e99ba5af13493228.gz
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/config/settings/config.class.php | 2 | ||||
-rw-r--r-- | lib/plugins/importoldchangelog/action.php | 6 | ||||
-rw-r--r-- | lib/plugins/plugin/admin.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/plugins/config/settings/config.class.php b/lib/plugins/config/settings/config.class.php index 57d27e7eb..4981c795c 100644 --- a/lib/plugins/config/settings/config.class.php +++ b/lib/plugins/config/settings/config.class.php @@ -190,7 +190,7 @@ if (!class_exists('configuration')) { $local = eval('return '.$this->_local_file.';'); if (!is_writable(dirname($local))) return true; - if (file_exists($local) && !is_writable($local)) return true; + if (@file_exists($local) && !is_writable($local)) return true; return false; } diff --git a/lib/plugins/importoldchangelog/action.php b/lib/plugins/importoldchangelog/action.php index 400ff6a18..e927b3e26 100644 --- a/lib/plugins/importoldchangelog/action.php +++ b/lib/plugins/importoldchangelog/action.php @@ -117,7 +117,7 @@ class action_plugin_importoldchangelog extends DokuWiki_Action_Plugin { function resetTimer() { // Add 5 minutes to the script execution timer... // This should be much more than needed. - set_time_limit(5*60); + @set_time_limit(5*60); // Note: Has no effect in safe-mode! } @@ -150,7 +150,7 @@ class action_plugin_importoldchangelog extends DokuWiki_Action_Plugin { ksort($recent); // ensure correct order of recent changes io_unlock($conf['changelog']); // hand off the lock to io_saveFile io_saveFile($conf['changelog'], implode('', $recent)); - unlink($conf['changelog'].'_importing'); // changelog importing unlock + @unlink($conf['changelog'].'_importing'); // changelog importing unlock } } @@ -163,7 +163,7 @@ function importoldchangelog_plugin_shutdown() { $path['failed'] = $conf['changelog'].'_failed'; $path['import_ok'] = $conf['changelog'].'_import_ok'; io_unlock($path['changelog']); // guarantee unlocking - if (file_exists($path['importing'])) { + if (@file_exists($path['importing'])) { // import did not finish rename($path['importing'], $path['failed']) or trigger_error('Importing changelog failed.', E_USER_WARNING); @unlink($path['import_ok']); diff --git a/lib/plugins/plugin/admin.php b/lib/plugins/plugin/admin.php index 03efae3bf..643754771 100644 --- a/lib/plugins/plugin/admin.php +++ b/lib/plugins/plugin/admin.php @@ -723,7 +723,7 @@ class ap_manage { $path = DOKU_PLUGIN.$plugin.'/'; foreach ($plugin_types as $type) { - if (file_exists($path.$type.'.php')) { $components[] = array('name'=>$plugin, 'type'=>$type); continue; } + if (@file_exists($path.$type.'.php')) { $components[] = array('name'=>$plugin, 'type'=>$type); continue; } if ($dh = @opendir($path.$type.'/')) { while (false !== ($cp = readdir($dh))) { |