Changeset 1080 for trunk/htdocs/cacher/index.php
- Timestamp:
- 2012-07-29T09:01:58+02:00 (10 months ago)
- File:
-
- 1 edited
-
trunk/htdocs/cacher/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/cacher/index.php
r1078 r1080 128 128 $moduleInfo = array(); 129 129 foreach ($m[1] as $i => $dummy) { 130 $moduleInfo[] = '<h3>' . trim($m[1][$i]) . '</h3>'; 131 $moduleInfo[] = str_replace('<br />', '', trim($m[2][$i])); 130 $caption = trim($m[1][$i]); 131 $info = str_replace('<br />', '', trim($m[2][$i])); 132 133 $regex = '!<table[^>]*>!'; 134 if (preg_match($regex, $info)) { 135 $moduleInfo[] = preg_replace($regex, "\\0<caption>$caption</caption>", $info, 1); 136 } 137 else { 138 $moduleInfo[] = "<h3>$caption</h3>"; 139 $moduleInfo[] = $info; 140 } 132 141 } 133 142 return implode('', $moduleInfo);
Note: See TracChangeset
for help on using the changeset viewer.

