$plugin = new ElggPlugin($plugin_id);
if (!$plugin) {
- $file = elgg_get_root_dir() . '_graphics/icons/default/medium.png';
+ $file = elgg_get_root_path() . '_graphics/icons/default/medium.png';
} else {
$file = $plugin->getPath() . $filename;
if (!file_exists($file)) {
- $file = elgg_get_root_dir() . '_graphics/icons/default/medium.png';
+ $file = elgg_get_root_path() . '_graphics/icons/default/medium.png';
}
}
}
/**
- * Get the root directory for this installation
+ * Get the root directory path for this installation
*
* @return string
* @since 1.8.0
*/
-function elgg_get_root_dir() {
+function elgg_get_root_path() {
global $CONFIG;
return $CONFIG->path;
}
*/
function diagnostics_sigs_hook($hook, $entity_type, $returnvalue, $params) {
- $base_dir = elgg_get_root_dir();
+ $base_dir = elgg_get_root_path();
$returnvalue .= elgg_echo('diagnostics:report:md5', array(diagnostics_md5_dir($base_dir)));
return $returnvalue;
if ($action == 'edit') {
// use the core profile edit page
- $base_dir = elgg_get_root_dir();
+ $base_dir = elgg_get_root_path();
require "{$base_dir}pages/profile/edit.php";
return;
}