Author: pwang
Date: 2011-04-28 15:52:30 -0700 (Thu, 28 Apr 2011)
New Revision: 24851

Modified:
   new_cytoscape_website/plugin_website/plugins/pluginPropsUtil.inc
Log:
Exclude the minor version number start with 0, like 0.09

Modified: new_cytoscape_website/plugin_website/plugins/pluginPropsUtil.inc
===================================================================
--- new_cytoscape_website/plugin_website/plugins/pluginPropsUtil.inc    
2011-04-28 21:41:45 UTC (rev 24850)
+++ new_cytoscape_website/plugin_website/plugins/pluginPropsUtil.inc    
2011-04-28 22:52:30 UTC (rev 24851)
@@ -65,6 +65,16 @@
                <strong>Error in plugin.prop: plugin version must be double 
type, two numbers seperated by a dot (.).</strong><br>
                <?php
 
+               } 
+               else {
+                       // Exclude the version number, like 0.09
+                       list($part1, $part2) = split('\.', 
$pluginProps['pluginVersion']);
+                       if (is_numeric($part2) && $part2 < 10 && 
strlen($part2)>1){
+                               $retVal = false;
+                               ?>
+                               <strong>Error in plugin.prop: plugin minor 
version must not start with 0</strong><br>
+                               <?php
+                       }
                }
        }
        

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to