engine/classes/Elgg/UpgradeService.php 1 location
|
@@ 193-201 (lines=9) @@
|
| 190 |
|
* @return int|false |
| 191 |
|
* @since 1.8.0 |
| 192 |
|
*/ |
| 193 |
|
protected function getUpgradeFileVersion($filename) { |
| 194 |
|
preg_match('/^([0-9]{10})([\.a-z0-9-_]+)?\.(php)$/i', $filename, $matches); |
| 195 |
|
|
| 196 |
|
if (isset($matches[1])) { |
| 197 |
|
return (int) $matches[1]; |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
return false; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
/** |
| 204 |
|
* Returns a list of upgrade files relative to the $upgrade_path dir. |
engine/lib/upgrade.php 1 location
|
@@ 34-42 (lines=9) @@
|
| 31 |
|
* @access private |
| 32 |
|
* @todo used by elgg_get_upgrade_files |
| 33 |
|
*/ |
| 34 |
|
function elgg_get_upgrade_file_version($filename) { |
| 35 |
|
preg_match('/^([0-9]{10})([\.a-z0-9-_]+)?\.(php)$/i', $filename, $matches); |
| 36 |
|
|
| 37 |
|
if (isset($matches[1])) { |
| 38 |
|
return (int) $matches[1]; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
return false; |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** |
| 45 |
|
* Returns a list of upgrade files relative to the $upgrade_path dir. |