Changeset 1248349
- Timestamp:
- 09/18/2015 10:29:42 AM (11 years ago)
- File:
-
- 1 edited
-
cyclos/trunk/cyclos.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cyclos/trunk/cyclos.php
r1243632 r1248349 32 32 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 33 33 34 $phpVersionOkForCyclos = version_compare(PHP_VERSION, '5.3.0', '>='); 35 34 36 function cyclos_plugin_activate() { 35 if (version_compare(PHP_VERSION, '5.3.0') < 0) { 37 global $phpVersionOkForCyclos; 38 if (!$phpVersionOkForCyclos) { 36 39 wp_die('The Cyclos plugin requires at least PHP version 5.3. You have ' . PHP_VERSION); 37 40 deactivate_plugins( basename( __FILE__ ) ); … … 40 43 register_activation_hook( __FILE__, 'cyclos_plugin_activate' ); 41 44 42 include_once 'cyclos-common.php'; 43 include_once 'cyclos-admin.php'; 44 include_once 'cyclos-public.php'; 45 if ($phpVersionOkForCyclos) { 46 include_once 'cyclos-common.php'; 47 include_once 'cyclos-admin.php'; 48 include_once 'cyclos-public.php'; 49 } 45 50 ?>
Note: See TracChangeset
for help on using the changeset viewer.