@@ -32,7 +32,7 @@ |
||
32 | 32 | putenv('LC_ALL='.$lang.'.'.$codeset); |
33 | 33 | putenv('LANG='.$lang.'.'.$codeset); |
34 | 34 | putenv('LANGUAGE='.$lang.'.'.$codeset); |
35 | -setlocale(LC_ALL, $lang.'.'.$codeset); |
|
35 | +setlocale(LC_ALL, $lang.'.'.$codeset); |
|
36 | 36 | |
37 | 37 | $domain = 'rudolf'; |
38 | 38 | bindtextdomain($domain, APP_ROOT.'/locale'); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'published' => '', |
27 | 27 | ], $this->data); |
28 | 28 | |
29 | - $data = array_map(function ($a) { |
|
29 | + $data = array_map(function($a) { |
|
30 | 30 | return trim($a); |
31 | 31 | }, $data); |
32 | 32 |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Rudolf\Component\Hooks\Filter; |
4 | 4 | |
5 | -Filter::add('head_after', function ($after) { |
|
5 | +Filter::add('head_after', function($after) { |
|
6 | 6 | $after[] = '<link href="'.DIR.'/rss/" rel="alternate" type="application/rss+xml" title="Kanał z artykułami">'; |
7 | 7 | |
8 | 8 | return $after; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'published' => '', |
27 | 27 | ], $this->data); |
28 | 28 | |
29 | - $data = array_map(function ($a) { |
|
29 | + $data = array_map(function($a) { |
|
30 | 30 | return trim($a); |
31 | 31 | }, $data); |
32 | 32 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | file_put_contents($file, implode(':', $contentArray)); |
43 | 43 | |
44 | - setcookie('vote_'.$id, $type, time() + (3600 * 24 * 365 * 5), DIR); |
|
44 | + setcookie('vote_'.$id, $type, time() + (3600 * 24 * 365 * 5), DIR); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | return [ |
@@ -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 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | 'type' => $this->type, |
24 | 24 | ], $this->data); |
25 | 25 | |
26 | - $data = array_map(function ($a) { |
|
26 | + $data = array_map(function($a) { |
|
27 | 27 | return trim($a); |
28 | 28 | }, $data); |
29 | 29 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'published' => '', |
27 | 27 | ], $this->data); |
28 | 28 | |
29 | - $data = array_map(function ($a) { |
|
29 | + $data = array_map(function($a) { |
|
30 | 30 | return trim($a); |
31 | 31 | }, $data); |
32 | 32 |
@@ -4,18 +4,18 @@ discard block |
||
4 | 4 | define('VER_NAME', '0.11.0'); |
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'); |