Add option to move data root
This commit is contained in:
		| @ -2,6 +2,8 @@ | ||||
| /* Copyright (C) 2021  Alexander Rosenberg | ||||
|  * This file is AGPL v3. See LICENSE file for more information | ||||
|  */ | ||||
| require 'options.php'; | ||||
|  | ||||
| class Album { | ||||
|     private const PATH_PREFIX = 'albums'; | ||||
|     private const THUMB_PREFIX = 'thumbnails'; | ||||
| @ -66,7 +68,8 @@ class Album { | ||||
|     } | ||||
|  | ||||
|     function get_path() { | ||||
|         return $this::PATH_PREFIX . '/' . $this->name; | ||||
|         return AM_OPTIONS['root'] . '/' . $this::PATH_PREFIX . '/' | ||||
|             . $this->name; | ||||
|     } | ||||
|  | ||||
|     function get_title() { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user