]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/framework/Web/TUrlMapping.php
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / framework / Web / TUrlMapping.php
index 4c93f00436f20ce2da1e6d5df026b4362e6703c2..5d8ab821f75fee25df985fbc6167f2e10257651a 100644 (file)
@@ -3,9 +3,9 @@
  * TUrlMapping, TUrlMappingPattern and TUrlMappingPatternSecureConnection class file.
  *
  * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2014 PradoSoft
- * @license http://www.pradosoft.com/license/
+ * @link https://github.com/pradosoft/prado
+ * @copyright Copyright &copy; 2005-2016 The PRADO Group
+ * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
  * @package System.Web
  */
 
@@ -241,9 +241,7 @@ class TUrlMapping extends TUrlManager
                        {
                                foreach($config['urls'] as $url)
                                {
-                                       $class=null;
-                                       if(!isset($url['class']))
-                                               $class=$defaultClass;
+                                       $class=isset($url['class'])?$url['class']:$defaultClass;
                                        $properties = isset($url['properties'])?$url['properties']:array();
                                        $this->buildUrlMapping($class,$properties,$url);
                                }