@@ -21,7 +21,7 @@ |
||
21 | 21 | 'published' => '', |
22 | 22 | ], $this->data); |
23 | 23 | |
24 | - $data = array_map(function ($a) { |
|
24 | + $data = array_map(function($a) { |
|
25 | 25 | return trim($a); |
26 | 26 | }, $data); |
27 | 27 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | 'published' => '', |
25 | 25 | ], $this->data); |
26 | 26 | |
27 | - $data = array_map(function ($a) { |
|
27 | + $data = array_map(function($a) { |
|
28 | 28 | return trim($a); |
29 | 29 | }, $data); |
30 | 30 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | 'foto/kategorie/<slug>(/|/page/<page>)?', |
16 | 16 | 'Rudolf\Modules\Albums\Category\One\Controller::getCategory', |
17 | 17 | ['slug' => '[a-z0-9]+(?:-[a-z0-9]+)*', |
18 | - 'page' => '[1-9][0-9]*$', ], |
|
18 | + 'page' => '[1-9][0-9]*$', ], |
|
19 | 19 | ['page' => 0] |
20 | 20 | )); |
21 | 21 | |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | 'foto/<year>/<month>/<slug>(\/)?', |
25 | 25 | 'Rudolf\Modules\Albums\One\Controller::getOne', |
26 | 26 | ['year' => '[0-9]{4}', |
27 | - 'month' => "(0[1-9]|[12]\d|3[01])", |
|
28 | - 'slug' => '[a-z0-9-]+', |
|
27 | + 'month' => "(0[1-9]|[12]\d|3[01])", |
|
28 | + 'slug' => '[a-z0-9-]+', |
|
29 | 29 | // (0[1-9]|[12]\d|3[01]) with 0, like 05 |
30 | 30 | // ([1-9]|[12]\d|3[01]) without 0, like 5 |
31 | 31 | ] |
@@ -18,7 +18,7 @@ |
||
18 | 18 | 'thumb_height' => '', |
19 | 19 | ], $this->data); |
20 | 20 | |
21 | - $data = array_map(function ($a) { |
|
21 | + $data = array_map(function($a) { |
|
22 | 22 | return trim($a); |
23 | 23 | }, $data); |
24 | 24 |
@@ -4,18 +4,18 @@ discard block |
||
4 | 4 | define('VER_NAME', '0.0.11-prealpha'); |
5 | 5 | define('NAME', 'rudolf'); |
6 | 6 | |
7 | -define('APP_ROOT', __DIR__); |
|
8 | -define('CORE_ROOT', APP_ROOT.'/core'); |
|
9 | -define('MODULES_ROOT', APP_ROOT.'/module'); |
|
7 | +define('APP_ROOT', __DIR__); |
|
8 | +define('CORE_ROOT', APP_ROOT.'/core'); |
|
9 | +define('MODULES_ROOT', APP_ROOT.'/module'); |
|
10 | 10 | |
11 | -define('CONFIG_ROOT', WEB_ROOT.'/config'); |
|
12 | -define('TEMP_ROOT', WEB_ROOT.'/temp'); |
|
13 | -define('LOG_ROOT', WEB_ROOT.'/log'); |
|
11 | +define('CONFIG_ROOT', WEB_ROOT.'/config'); |
|
12 | +define('TEMP_ROOT', WEB_ROOT.'/temp'); |
|
13 | +define('LOG_ROOT', WEB_ROOT.'/log'); |
|
14 | 14 | |
15 | -define('CONTENT_ROOT', WEB_ROOT.'/content'); |
|
16 | -define('PLUGINS_ROOT', CONTENT_ROOT.'/plugins'); |
|
17 | -define('THEMES_ROOT', CONTENT_ROOT.'/themes'); |
|
18 | -define('UPLOADS_ROOT', CONTENT_ROOT.'/uploads'); |
|
15 | +define('CONTENT_ROOT', WEB_ROOT.'/content'); |
|
16 | +define('PLUGINS_ROOT', CONTENT_ROOT.'/plugins'); |
|
17 | +define('THEMES_ROOT', CONTENT_ROOT.'/themes'); |
|
18 | +define('UPLOADS_ROOT', CONTENT_ROOT.'/uploads'); |
|
19 | 19 | |
20 | 20 | if (dirname($_SERVER['SCRIPT_NAME']) == '/') { |
21 | 21 | define('DIR', ''); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | define('DIR', dirname($_SERVER['SCRIPT_NAME'])); |
24 | 24 | } |
25 | 25 | |
26 | -define('CONTENT', DIR.'/content'); |
|
27 | -define('PLUGINS', CONTENT.'/plugins'); |
|
28 | -define('THEMES', CONTENT.'/themes'); |
|
29 | -define('UPLOADS', CONTENT.'/uploads'); |
|
26 | +define('CONTENT', DIR.'/content'); |
|
27 | +define('PLUGINS', CONTENT.'/plugins'); |
|
28 | +define('THEMES', CONTENT.'/themes'); |
|
29 | +define('UPLOADS', CONTENT.'/uploads'); |