| @@ -1,10 +1,6 @@ | ||
| 1 | 1 | <?php defined('ABSPATH') or die; |
| 2 | 2 | |
| 3 | -/* This file is property of Pixel Grade Media. You may NOT copy, or redistribute | |
| 4 | - * it. Please see the license that came with your copy for more information. | |
| 5 | - */ | |
| 6 | - | |
| 7 | 3 | /** |
| 8 | 4 | * @package pixcustomify |
| 9 | 5 | * @category core |
| 10 | 6 | * @author Pixel Grade Team |
| @@ -267,9 +263,9 @@ | ||
| 267 | 263 | asort($priority_list, SORT_ASC); |
| 268 | 264 | |
| 269 | 265 | foreach ($priority_list as $file => $priority) { |
| 270 | 266 | if (strpos($file, EXT)) { |
| 271 | - require $file; | |
| 267 | + require_once $file; | |
| 272 | 268 | } |
| 273 | 269 | } |
| 274 | 270 | } |
| 275 | 271 | |
| @@ -286,10 +282,12 @@ | ||
| 286 | 282 | return strlen($path) + substr_count($path, '/') * 100; |
| 287 | 283 | } |
| 288 | 284 | |
| 289 | 285 | static function option( $option, $default = null ) { |
| 286 | + /** @var PixCustomifyPlugin $local_plugin */ | |
| 287 | + $local_plugin = PixCustomifyPlugin(); | |
| 290 | 288 | |
| 291 | - return PixCustomifyPlugin::get_option($option, $default = null); | |
| 289 | + return $local_plugin->get_option($option, $default = null); | |
| 292 | 290 | |
| 293 | 291 | } |
| 294 | 292 | |
| 295 | 293 | } # class |