Changeset 10026
- Timestamp:
- 11/28/08 14:38:07 (1 month ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/0.8/jaws/html/include/Jaws/URLMapping.php
r9858 r10026 239 239 } 240 240 241 $arrayAsString = "<?php\n" . $this->ToArrayString($custom) . "?>";241 $arrayAsString = "<?php\n" . $this->ToArrayString($custom); 242 242 $mapFile = $map_dir . (($custom === false)? 'core.php' : 'custom.php'); 243 if (file_put_contents($mapFile, $arrayAsString) !== false) { 244 Jaws_Utils::chmod($mapFile); 245 } 243 Jaws_Utils::file_put_contents($mapFile, $arrayAsString); 246 244 } 247 245 … … 518 516 } 519 517 520 $uniqueKey = md5(uniqid(rand(), true)); 521 $res .= "\$map['{$gadget}']['{$action}']['{$uniqueKey}'] = array(\n"; 518 $res .= "\$map['{$gadget}']['{$action}'][] = array(\n"; 522 519 $res .= "\t\t\t\t'map' => '{$map['map']}',\n"; 523 520 $res .= "\t\t\t\t'file' => '{$map['file']}',\n";
