[Jaws-commits] r9740 - in branches/0.8/jaws/html: gadgets/UrlMapper include/Jaws

afz at jaws-project.com afz at jaws-project.com
Fri Oct 31 07:44:03 UTC 2008


Author: afz
Date: 2008-10-31 07:44:03 +0000 (Fri, 31 Oct 2008)
New Revision: 9740

Modified:
   branches/0.8/jaws/html/gadgets/UrlMapper/Model.php
   branches/0.8/jaws/html/include/Jaws/URLMapping.php
Log:
add custom param to AddMap method

Modified: branches/0.8/jaws/html/gadgets/UrlMapper/Model.php
===================================================================
--- branches/0.8/jaws/html/gadgets/UrlMapper/Model.php	2008-10-31 06:48:42 UTC (rev 9739)
+++ branches/0.8/jaws/html/gadgets/UrlMapper/Model.php	2008-10-31 07:44:03 UTC (rev 9740)
@@ -22,7 +22,7 @@
      * @param    string    $script     File to use
      * @return   boolean   Success/Failure
      */
-    function AddMap($gadget, $action, $map, $regexp, $script = 'index.php')
+    function AddMap($gadget, $action, $map, $regexp, $script = 'index.php', $custom = true)
     {
         $params           = array();
         $params['gadget'] = $gadget;
@@ -30,7 +30,7 @@
         $params['map']    = $map;
         $params['script'] = $script;
         $params['regexp'] = $regexp;
-        $params['custom'] = true;
+        $params['custom'] = $custom;
 
         $sql = '
             INSERT INTO [[url_maps]]

Modified: branches/0.8/jaws/html/include/Jaws/URLMapping.php
===================================================================
--- branches/0.8/jaws/html/include/Jaws/URLMapping.php	2008-10-31 06:48:42 UTC (rev 9739)
+++ branches/0.8/jaws/html/include/Jaws/URLMapping.php	2008-10-31 07:44:03 UTC (rev 9740)
@@ -128,7 +128,7 @@
         $regexp = str_replace($this->_delimiter, '\\' . $this->_delimiter, $regexp);
         $regexp = $this->_delimiter . '^' . $regexp . '$' . $this->_delimiter;
 
-        $this->_Model->AddMap($gadget, $action, $map, $regexp, $file);
+        $this->_Model->AddMap($gadget, $action, $map, $regexp, $file, false);
     }
 
     /**



More information about the Jaws-commits mailing list