mirror of
https://github.com/YahnisElsts/plugin-update-checker.git
synced 2025-10-04 02:02:05 +08:00
Remove defined('__NAMESPACE__') checks since that apparently doesn't work
This commit is contained in:
parent
3c55658638
commit
dee87bbfe6
2 changed files with 2 additions and 6 deletions
|
@ -14,11 +14,7 @@ if ( !class_exists('Puc_v4p10_DebugBar_Extension', false) ):
|
|||
$this->panelClass = $panelClass;
|
||||
}
|
||||
|
||||
if (
|
||||
defined('__NAMESPACE__')
|
||||
&& version_compare(PHP_VERSION, '5.3', '>=')
|
||||
&& (strpos($this->panelClass, '\\') === false)
|
||||
) {
|
||||
if ( version_compare(PHP_VERSION, '5.3', '>=') && (strpos($this->panelClass, '\\') === false) ) {
|
||||
$this->panelClass = __NAMESPACE__ . '\\' . $this->panelClass;
|
||||
}
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ if ( !class_exists('Puc_v4p10_Factory', false) ):
|
|||
}
|
||||
|
||||
//Add the current namespace to the class name(s).
|
||||
if ( defined('__NAMESPACE__') && version_compare(PHP_VERSION, '5.3', '>=') ) {
|
||||
if ( version_compare(PHP_VERSION, '5.3', '>=') ) {
|
||||
$checkerClass = __NAMESPACE__ . '\\' . $checkerClass;
|
||||
if ( isset($apiClass) ) {
|
||||
$apiClass = __NAMESPACE__ . '\\' . $apiClass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue