Created
December 15, 2015 10:11
-
-
Save yellowled/d8f65107d779f2298f3c to your computer and use it in GitHub Desktop.
Check/switch version in s9y backend files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// do not use in 2.0 versions | |
if ($serendipity['version'][0] == '1') { | |
// do something old version | |
} else { | |
// new | |
} | |
if ($serendipity['version'][0] == '2') { // new } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment