[ phpopencounter-Bugs-792791 ] emacs backups blow up LoadPlugin
"SourceForge.net" <[email protected]> Thu, 21 Aug 2003 14:58:43 -0700
| Newsgroups | gmane.comp.web.phpopentracker.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #792791, was opened at 2003-08-21 14:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=792791&group_id=1716
Category: Analysis Module
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: emacs backups blow up LoadPlugin
Initial Comment:
In the _loadPlugin function in API.php, it'll die with
a fatal error if you're text editor leaves a backup
copy of a plugin lieing around. In _loadPlugin, I
modified the second if to ignore files with leading #'s
and trailing ~'s
function _loadPlugins() {
if ($dir = @opendir(POT_INCLUDE_PATH .
'API/plugins')) {
while (($file = @readdir($dir)) !== false) {
if (strstr($file, '.php')
-> && substr( $file, -1, 1) != "~"
-> && substr( $file, 0, 1) != "#"
) {
-- Tim Wood / tim.wood (at) compuComFed.com
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=792791&group_id=1716
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0