Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14675/include
Modified Files:
compat.inc.php
Log Message:
- serendipity_version is not used anymore, so don't hack it
Index: compat.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/compat.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- compat.inc.php 9 Feb 2005 17:06:05 -0000 1.5
+++ compat.inc.php 9 Feb 2005 19:55:20 -0000 1.6
@@ -121,15 +121,8 @@
}
}
-function serendipity_version($version, $stripChars = false) {
- if ($stripChars) {
- // Only returns the first version numbers:
- // 0.8-alpha3 becomes '0.8'
- // 0.8.1 becomes '0.8.1' and so on
- $version = preg_replace('@^([0-9\.]+).*$@', '\1', $version);
- }
-
- return $version;
+function serendipity_getCoreVersion($version) {
+ return preg_replace('@^([0-9\.]+).*$@', '\1', $version);
}
/*
|