diff --git a/docs/config.json b/docs/config.json index 249a461..47bbdbf 100644 --- a/docs/config.json +++ b/docs/config.json @@ -13,7 +13,6 @@ "float": true, "file_editor": false, "repo": "justinwalsh/daux.io", - "repo_to_fix": "https://github.com/justinwalsh/daux.io/blob/master/", "ignore": { "files": ["Work_In_Progress.md"], "folders": ["99_Not_Ready"] diff --git a/libs/daux.php b/libs/daux.php index ec71c9a..f07fe8b 100644 --- a/libs/daux.php +++ b/libs/daux.php @@ -101,7 +101,6 @@ return; } $this->docs_path = $this->local_base . DIRECTORY_SEPARATOR . $global_config['docs_directory']; - $this->relative_path = $global_config['docs_directory']; if (!is_dir($this->docs_path)) { $this->generate_error_page('Docs Directory not found', 'The Docs directory does not exist. Check the path again : ' . $this->docs_path, ErrorPage::FATAL_ERROR_TYPE); @@ -193,8 +192,6 @@ private function get_page_params($mode = '') { $params = array(); $params['local_base'] = $this->local_base; - $params['relative_path'] = $this->relative_path; - $params['repo_to_fix'] = $this->options['repo_to_fix']; if ($mode === '') $mode = $this->mode; $params['mode'] = $mode; diff --git a/libs/daux_directory.php b/libs/daux_directory.php index acbeca6..b39a2ef 100644 --- a/libs/daux_directory.php +++ b/libs/daux_directory.php @@ -10,7 +10,6 @@ public $index_page; public $first_page; public $value; - public $extension; public $uri; public $local_path; public $last_modified; @@ -32,8 +31,6 @@ } else { $this->type = Directory_Entry::FILE_TYPE; $this->value = $this->uri; - $pathinfo = DauxHelper::pathinfo($path); - $this->extension = $pathinfo['extension']; } } diff --git a/libs/daux_page.php b/libs/daux_page.php index a276ea9..2b9dfbc 100644 --- a/libs/daux_page.php +++ b/libs/daux_page.php @@ -112,16 +112,9 @@ $this->title = $file->title; $this->filename = $file->name; $this->path = $file->local_path; - $this->repo_path = $params['repo_to_fix']; - $this->extension = $file->extension; $this->mtime = $file->last_modified; $this->params = $params; - $this->folderPaths = ''; - foreach ($file->parents as $parent) { - $this->folderPaths .= DIRECTORY_SEPARATOR . $parent->name; - } - if ($this->title === 'index') { $this->homepage = ($this->filename === '_index'); $minimum_parent_dir_size = ($params['multilanguage']) ? 2 : 1; @@ -191,7 +184,6 @@ } $page['language'] = $this->language; $page['path'] = $this->path; - $page['url_for_fix'] = $this->repo_path . $this->folderPaths . DIRECTORY_SEPARATOR . $this->filename . '.' . $this->extension; $page['request'] = utf8_encode($params['request']); $page['theme'] = $params['theme']; $page['modified_time'] = filemtime($this->path); diff --git a/templates/default/default.tpl b/templates/default/default.tpl index f7b63a4..cdfb282 100644 --- a/templates/default/default.tpl +++ b/templates/default/default.tpl @@ -225,7 +225,6 @@ else echo $page['title']; ?> Edit this page'; ?> - Fix this page'; ?> @@ -240,9 +239,7 @@ if ($page['breadcrumbs']) echo $this->get_breadcrumb_title($page, $base_page); else echo $page['title']; ?> - Edit this page'; ?> - Fix this page'; ?> - + Edit this page'; ?> @@ -259,7 +256,6 @@
-