OSDN Git Service
(root)
/
nucleus-jp
/
nucleus-jp-ancient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some minor PHP 5.3 compatibility fixes
[nucleus-jp/nucleus-jp-ancient.git]
/
utf8
/
nucleus
/
plugins
/
NP_Ping.php
diff --git
a/utf8/nucleus/plugins/NP_Ping.php
b/utf8/nucleus/plugins/NP_Ping.php
index
5745183
..
ac6a52e
100644
(file)
--- a/
utf8/nucleus/plugins/NP_Ping.php
+++ b/
utf8/nucleus/plugins/NP_Ping.php
@@
-75,7
+75,8
@@
class NP_Ping extends NucleusPlugin
function init()
{
function init()
{
- $language = ereg_replace( '[\\|/]', '', getLanguageName());
+// $language = ereg_replace( '[\\|/]', '', getLanguageName());
+ $language = preg_replace( '@\\|/@', '', getLanguageName());
if (file_exists($this->getDirectory() . $language . '.php')) {
include_once($this->getDirectory() . $language . '.php');
} else {
if (file_exists($this->getDirectory() . $language . '.php')) {
include_once($this->getDirectory() . $language . '.php');
} else {