From 95334aed4fa5507d188fdb23608a946ff612bfb8 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Mon, 15 May 2017 20:18:55 +0200 Subject: [PATCH 001/148] consistent/valid status codes --- libraries/joomla/application/web.php | 87 +++++++++++++++++++++++++--- 1 file changed, 80 insertions(+), 7 deletions(-) diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index a8b6ce9116fda..00982f12b9ea6 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -82,6 +82,9 @@ class JApplicationWeb extends JApplicationBase * @see http://tools.ietf.org/pdf/rfc7231.pdf */ private $responseMap = array( + 100 => 'HTTP/1.1 100 Continue', + 101 => 'HTTP/1.1 101 Switching Protocols', + 102 => 'HTTP/1.1 102 Processing', 300 => 'HTTP/1.1 300 Multiple Choices', 301 => 'HTTP/1.1 301 Moved Permanently', 302 => 'HTTP/1.1 302 Found', @@ -91,7 +94,54 @@ class JApplicationWeb extends JApplicationBase 306 => 'HTTP/1.1 306 (Unused)', 307 => 'HTTP/1.1 307 Temporary Redirect', 308 => 'HTTP/1.1 308 Permanent Redirect', - ); + 200 => 'HTTP/1.1 200 OK', + 201 => 'HTTP/1.1 201 Created', + 202 => 'HTTP/1.1 202 Accepted', + 203 => 'HTTP/1.1 203 Non-Authoritative Information', + 204 => 'HTTP/1.1 204 No Content', + 205 => 'HTTP/1.1 205 Reset Content', + 206 => 'HTTP/1.1 206 Partial Content', + 207 => 'HTTP/1.1 207 Multi-Status', + 208 => 'HTTP/1.1 208 Already Reported', + 226 => 'HTTP/1.1 226 IM Used', + 400 => 'HTTP/1.1 400 Bad Request', + 401 => 'HTTP/1.1 401 Unauthorized', + 402 => 'HTTP/1.1 402 Payment Required', + 403 => 'HTTP/1.1 403 Forbidden', + 404 => 'HTTP/1.1 404 Not Found', + 405 => 'HTTP/1.1 405 Method Not Allowed', + 406 => 'HTTP/1.1 406 Not Acceptable', + 407 => 'HTTP/1.1 407 Proxy Authentication Required', + 408 => 'HTTP/1.1 408 Request Timeout', + 409 => 'HTTP/1.1 409 Conflict', + 410 => 'HTTP/1.1 410 Gone', + 411 => 'HTTP/1.1 411 Length Required', + 412 => 'HTTP/1.1 412 Precondition Failed', + 413 => 'HTTP/1.1 413 Payload Too Large', + 414 => 'HTTP/1.1 414 URI Too Long', + 415 => 'HTTP/1.1 415 Unsupported Media Type', + 416 => 'HTTP/1.1 416 Range Not Satisfiable', + 417 => 'HTTP/1.1 417 Expectation Failed', + 421 => 'HTTP/1.1 421 Misdirected Request', + 422 => 'HTTP/1.1 422 Unprocessable Entity', + 423 => 'HTTP/1.1 423 Locked', + 424 => 'HTTP/1.1 424 Failed Dependency', + 426 => 'HTTP/1.1 426 Upgrade Required', + 428 => 'HTTP/1.1 428 Precondition Required', + 429 => 'HTTP/1.1 429 Too Many Requests', + 431 => 'HTTP/1.1 431 Request Header Fields Too Large', + 451 => 'HTTP/1.1 451 Unavailable For Legal Reasons', + 500 => 'HTTP/1.1 500 Internal Server Error', + 501 => 'HTTP/1.1 501 Not Implemented', + 502 => 'HTTP/1.1 502 Bad Gateway', + 503 => 'HTTP/1.1 503 Service Unavailable', + 504 => 'HTTP/1.1 504 Gateway Timeout', + 505 => 'HTTP/1.1 505 HTTP Version Not Supported', + 506 => 'HTTP/1.1 506 Variant Also Negotiates', + 507 => 'HTTP/1.1 507 Insufficient Storage', + 508 => 'HTTP/1.1 508 Loop Detected', + 510 => 'HTTP/1.1 510 Not Extended', + 511 => 'HTTP/1.1 511 Network Authentication Required', ); /** * A map of HTTP Response headers which may only send a single value, all others @@ -550,7 +600,7 @@ public function redirect($url, $status = 303) } else { - // Check if we have a boolean for the status variable for compatability with old $move parameter + // Check if we have a boolean for the status variable for compatibility with old $move parameter // @deprecated 4.0 if (is_bool($status)) { @@ -660,10 +710,10 @@ public function setHeader($name, $value, $replace = false) } /** - * If no keys found, safe to insert (!$keys) - * If ($keys && $replace) it's a replacement and previous have been deleted - * if($keys && !in_array...) it's a multiple value header - */ + * If no keys found, safe to insert (!$keys) + * If ($keys && $replace) it's a replacement and previous have been deleted + * if($keys && !in_array...) it's a multiple value header + */ $single = in_array($name, $this->singleValueResponseHeaders); if ($value && (!$keys || ($keys && ($replace || !$single)))) { @@ -719,7 +769,9 @@ public function sendHeaders() if ('status' == strtolower($header['name'])) { // 'status' headers indicate an HTTP status, and need to be handled slightly differently - $this->header('HTTP/1.1 ' . (int) $header['value'], true); + $status = $this->getHttpStatusValue($header['value']); + + $this->header($status, true, (int) $header['value']); } else { @@ -732,6 +784,27 @@ public function sendHeaders() return $this; } + /** + * Check is a given value can be successfully mapped to a valid http status value + * + * @param string $value The given status as int or string + * + * @return string + * + * @since __DEPLOY_VERSION__ + */ + protected function getHttpStatusValue($value) + { + $code = (int) $value; + + if (array_key_exists($code, $this->responseMap)) + { + return $this->responseMap[$code]; + } + + return 'HTTP/1.1 ' . $code; + } + /** * Set body content. If body content already defined, this will replace it. * From 16b4d2f1b108d2731f6c81c3d5722d00ffd83b19 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Mon, 15 May 2017 20:36:51 +0200 Subject: [PATCH 002/148] fix test a bit revert and make sure that all values are checked --- .../cms/application/JApplicationCmsTest.php | 8 ++++---- .../joomla/application/JApplicationWebTest.php | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/unit/suites/libraries/cms/application/JApplicationCmsTest.php b/tests/unit/suites/libraries/cms/application/JApplicationCmsTest.php index bc7a74a714f3a..8ff92da68896f 100644 --- a/tests/unit/suites/libraries/cms/application/JApplicationCmsTest.php +++ b/tests/unit/suites/libraries/cms/application/JApplicationCmsTest.php @@ -447,7 +447,7 @@ public function testRedirect() $this->class->redirect($url, false); $this->assertEquals( - array('HTTP/1.1 303', true, null), + array('HTTP/1.1 303 See other', true, 303), $this->class->headers[0] ); @@ -517,7 +517,7 @@ public function testRedirectLegacy() ); $this->assertEquals( - array('HTTP/1.1 303', true, null), + array('HTTP/1.1 303 See other', true, 303), $this->class->headers[0] ); @@ -583,7 +583,7 @@ public function testRedirectLegacyWithEmptyMessageAndEmptyStatus() // The redirect gives a 303 error code $this->assertEquals( - array('HTTP/1.1 303', true, null), + array('HTTP/1.1 303 See other', true, 303), $this->class->headers[0] ); @@ -701,7 +701,7 @@ public function testRedirectWithMoved() $this->class->redirect($url, true); $this->assertEquals( - array('HTTP/1.1 301', true, null), + array('HTTP/1.1 301 Moved Permanently', true, 301), $this->class->headers[0] ); diff --git a/tests/unit/suites/libraries/joomla/application/JApplicationWebTest.php b/tests/unit/suites/libraries/joomla/application/JApplicationWebTest.php index 1275a161ebb25..0e0fa4b875757 100644 --- a/tests/unit/suites/libraries/joomla/application/JApplicationWebTest.php +++ b/tests/unit/suites/libraries/joomla/application/JApplicationWebTest.php @@ -1086,7 +1086,7 @@ public function testRedirect() $this->class->redirect($url, false); $this->assertEquals( - array('HTTP/1.1 303', true, null), + array('HTTP/1.1 303 See other', true, 303), $this->class->headers[0] ); @@ -1149,12 +1149,12 @@ public function testRedirectWithExistingStatusCode1() // It has two statuses, but the second status will be the final status $this->assertEquals( - array('HTTP/1.1 201', true, null), + array('HTTP/1.1 201 Created', true, 201), $this->class->headers[0] ); $this->assertEquals( - array('HTTP/1.1 303', true, null), + array('HTTP/1.1 303 See other', true, 303), $this->class->headers[1] ); @@ -1216,7 +1216,7 @@ public function testRedirectWithExistingStatusCode2() $this->class->redirect($url, false); $this->assertEquals( - array('HTTP/1.1 303', true, null), + array('HTTP/1.1 303 See other', true, 303), $this->class->headers[0] ); @@ -1328,7 +1328,7 @@ public function testRedirectWithMoved() $this->class->redirect($url, true); $this->assertEquals( - array('HTTP/1.1 301', true, null), + array('HTTP/1.1 301 Moved Permanently', true, 301), $this->class->headers[0] ); @@ -1453,7 +1453,7 @@ public function testSendHeaders() $this->assertEquals( array( - array('HTTP/1.1 200', true, null), + array('HTTP/1.1 200 OK', true, 200), array('X-JWeb-SendHeaders: foo', true, null), ), $this->class->headers From dae2a917f207f5413b706ae219065507b7fdadaa Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Mon, 15 May 2017 21:01:22 +0200 Subject: [PATCH 003/148] status code ordering --- libraries/joomla/application/web.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index 00982f12b9ea6..64ec6c1051f73 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -85,15 +85,6 @@ class JApplicationWeb extends JApplicationBase 100 => 'HTTP/1.1 100 Continue', 101 => 'HTTP/1.1 101 Switching Protocols', 102 => 'HTTP/1.1 102 Processing', - 300 => 'HTTP/1.1 300 Multiple Choices', - 301 => 'HTTP/1.1 301 Moved Permanently', - 302 => 'HTTP/1.1 302 Found', - 303 => 'HTTP/1.1 303 See other', - 304 => 'HTTP/1.1 304 Not Modified', - 305 => 'HTTP/1.1 305 Use Proxy', - 306 => 'HTTP/1.1 306 (Unused)', - 307 => 'HTTP/1.1 307 Temporary Redirect', - 308 => 'HTTP/1.1 308 Permanent Redirect', 200 => 'HTTP/1.1 200 OK', 201 => 'HTTP/1.1 201 Created', 202 => 'HTTP/1.1 202 Accepted', @@ -104,6 +95,15 @@ class JApplicationWeb extends JApplicationBase 207 => 'HTTP/1.1 207 Multi-Status', 208 => 'HTTP/1.1 208 Already Reported', 226 => 'HTTP/1.1 226 IM Used', + 300 => 'HTTP/1.1 300 Multiple Choices', + 301 => 'HTTP/1.1 301 Moved Permanently', + 302 => 'HTTP/1.1 302 Found', + 303 => 'HTTP/1.1 303 See other', + 304 => 'HTTP/1.1 304 Not Modified', + 305 => 'HTTP/1.1 305 Use Proxy', + 306 => 'HTTP/1.1 306 (Unused)', + 307 => 'HTTP/1.1 307 Temporary Redirect', + 308 => 'HTTP/1.1 308 Permanent Redirect', 400 => 'HTTP/1.1 400 Bad Request', 401 => 'HTTP/1.1 401 Unauthorized', 402 => 'HTTP/1.1 402 Payment Required', From 103deb29a42a6b8a5833e791a97766ffd9f23c47 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Mon, 15 May 2017 21:40:04 +0200 Subject: [PATCH 004/148] check redirection state in redirect function --- libraries/joomla/application/web.php | 42 +++++++++++++++++++--------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index 64ec6c1051f73..859d45358aa72 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -144,13 +144,13 @@ class JApplicationWeb extends JApplicationBase 511 => 'HTTP/1.1 511 Network Authentication Required', ); /** - * A map of HTTP Response headers which may only send a single value, all others - * are considered to allow multiple - * - * @var object - * @since 3.5.2 - * @see https://tools.ietf.org/html/rfc7230 - */ + * A map of HTTP Response headers which may only send a single value, all others + * are considered to allow multiple + * + * @var object + * @since 3.5.2 + * @see https://tools.ietf.org/html/rfc7230 + */ private $singleValueResponseHeaders = array( 'status', // This is not a valid header name, but the representation used by Joomla to identify the HTTP Response Code 'Content-Length', @@ -609,7 +609,7 @@ public function redirect($url, $status = 303) // Now check if we have an integer status code that maps to a valid redirect. If we don't then set a 303 // @deprecated 4.0 From 4.0 if no valid status code is given an InvalidArgumentException will be thrown - if (!is_int($status) || is_int($status) && !isset($this->responseMap[$status])) + if (!is_int($status) || !$this->isRedirectState($status)) { $status = 303; } @@ -627,6 +627,22 @@ public function redirect($url, $status = 303) $this->close(); } + /** + * Checks if a state is a redirect state + * + * @param integer $state The HTTP 1.1 status code. + * + * @return bool + * + * @since __DEPLOY_VERSION__ + */ + protected function isRedirectState($state) + { + $state = (int) $state; + + return ($state > 299 && $state < 400); + } + /** * Load an object or array into the application configuration object. * @@ -710,10 +726,10 @@ public function setHeader($name, $value, $replace = false) } /** - * If no keys found, safe to insert (!$keys) - * If ($keys && $replace) it's a replacement and previous have been deleted - * if($keys && !in_array...) it's a multiple value header - */ + * If no keys found, safe to insert (!$keys) + * If ($keys && $replace) it's a replacement and previous have been deleted + * if($keys && !in_array...) it's a multiple value header + */ $single = in_array($name, $this->singleValueResponseHeaders); if ($value && (!$keys || ($keys && ($replace || !$single)))) { @@ -785,7 +801,7 @@ public function sendHeaders() } /** - * Check is a given value can be successfully mapped to a valid http status value + * Check if a given value can be successfully mapped to a valid http status value * * @param string $value The given status as int or string * From 3d04acd92964454911309a0c433cd1dcb2b22b3a Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Mon, 15 May 2017 22:12:38 +0100 Subject: [PATCH 005/148] correct the tab indentation --- libraries/joomla/application/web.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index 859d45358aa72..b38c2f2bd611a 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -95,15 +95,15 @@ class JApplicationWeb extends JApplicationBase 207 => 'HTTP/1.1 207 Multi-Status', 208 => 'HTTP/1.1 208 Already Reported', 226 => 'HTTP/1.1 226 IM Used', - 300 => 'HTTP/1.1 300 Multiple Choices', - 301 => 'HTTP/1.1 301 Moved Permanently', - 302 => 'HTTP/1.1 302 Found', - 303 => 'HTTP/1.1 303 See other', - 304 => 'HTTP/1.1 304 Not Modified', - 305 => 'HTTP/1.1 305 Use Proxy', - 306 => 'HTTP/1.1 306 (Unused)', - 307 => 'HTTP/1.1 307 Temporary Redirect', - 308 => 'HTTP/1.1 308 Permanent Redirect', + 300 => 'HTTP/1.1 300 Multiple Choices', + 301 => 'HTTP/1.1 301 Moved Permanently', + 302 => 'HTTP/1.1 302 Found', + 303 => 'HTTP/1.1 303 See other', + 304 => 'HTTP/1.1 304 Not Modified', + 305 => 'HTTP/1.1 305 Use Proxy', + 306 => 'HTTP/1.1 306 (Unused)', + 307 => 'HTTP/1.1 307 Temporary Redirect', + 308 => 'HTTP/1.1 308 Permanent Redirect', 400 => 'HTTP/1.1 400 Bad Request', 401 => 'HTTP/1.1 401 Unauthorized', 402 => 'HTTP/1.1 402 Payment Required', From 0b1e46a7f0080b396a6956306a9f70cf42be1772 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Tue, 16 May 2017 00:24:50 +0100 Subject: [PATCH 006/148] Add status code 418 --- libraries/joomla/application/web.php | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index b38c2f2bd611a..8ec640f906c8b 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -122,6 +122,7 @@ class JApplicationWeb extends JApplicationBase 415 => 'HTTP/1.1 415 Unsupported Media Type', 416 => 'HTTP/1.1 416 Range Not Satisfiable', 417 => 'HTTP/1.1 417 Expectation Failed', + 418 => 'HTTP/1.1 418 I\'m a teapot', 421 => 'HTTP/1.1 421 Misdirected Request', 422 => 'HTTP/1.1 422 Unprocessable Entity', 423 => 'HTTP/1.1 423 Locked', From b48b890edd62667b21a6c0ca2aea9a2bd148b717 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Tue, 16 May 2017 10:12:06 +0200 Subject: [PATCH 007/148] typos and indentation --- libraries/joomla/application/web.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index 8ec640f906c8b..ad86747915f30 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -95,15 +95,15 @@ class JApplicationWeb extends JApplicationBase 207 => 'HTTP/1.1 207 Multi-Status', 208 => 'HTTP/1.1 208 Already Reported', 226 => 'HTTP/1.1 226 IM Used', - 300 => 'HTTP/1.1 300 Multiple Choices', - 301 => 'HTTP/1.1 301 Moved Permanently', - 302 => 'HTTP/1.1 302 Found', - 303 => 'HTTP/1.1 303 See other', - 304 => 'HTTP/1.1 304 Not Modified', - 305 => 'HTTP/1.1 305 Use Proxy', - 306 => 'HTTP/1.1 306 (Unused)', - 307 => 'HTTP/1.1 307 Temporary Redirect', - 308 => 'HTTP/1.1 308 Permanent Redirect', + 300 => 'HTTP/1.1 300 Multiple Choices', + 301 => 'HTTP/1.1 301 Moved Permanently', + 302 => 'HTTP/1.1 302 Found', + 303 => 'HTTP/1.1 303 See other', + 304 => 'HTTP/1.1 304 Not Modified', + 305 => 'HTTP/1.1 305 Use Proxy', + 306 => 'HTTP/1.1 306 (Unused)', + 307 => 'HTTP/1.1 307 Temporary Redirect', + 308 => 'HTTP/1.1 308 Permanent Redirect', 400 => 'HTTP/1.1 400 Bad Request', 401 => 'HTTP/1.1 401 Unauthorized', 402 => 'HTTP/1.1 402 Payment Required', @@ -729,7 +729,7 @@ public function setHeader($name, $value, $replace = false) /** * If no keys found, safe to insert (!$keys) * If ($keys && $replace) it's a replacement and previous have been deleted - * if($keys && !in_array...) it's a multiple value header + * If ($keys && !in_array...) it's a multiple value header */ $single = in_array($name, $this->singleValueResponseHeaders); if ($value && (!$keys || ($keys && ($replace || !$single)))) From e7b72b01601340058a2188bbf15797a834128858 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Tue, 16 May 2017 10:23:47 +0200 Subject: [PATCH 008/148] cs fix --- libraries/joomla/application/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index ad86747915f30..e5921febd492d 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -142,7 +142,8 @@ class JApplicationWeb extends JApplicationBase 507 => 'HTTP/1.1 507 Insufficient Storage', 508 => 'HTTP/1.1 508 Loop Detected', 510 => 'HTTP/1.1 510 Not Extended', - 511 => 'HTTP/1.1 511 Network Authentication Required', ); + 511 => 'HTTP/1.1 511 Network Authentication Required', + ); /** * A map of HTTP Response headers which may only send a single value, all others From 1414536064fde2c828c562d728da7dd074fbbc06 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Tue, 16 May 2017 10:26:50 +0200 Subject: [PATCH 009/148] cs fix2 --- libraries/joomla/application/web.php | 104 +++++++++++++-------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index e5921febd492d..0dd2f5b3b305a 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -82,19 +82,19 @@ class JApplicationWeb extends JApplicationBase * @see http://tools.ietf.org/pdf/rfc7231.pdf */ private $responseMap = array( - 100 => 'HTTP/1.1 100 Continue', - 101 => 'HTTP/1.1 101 Switching Protocols', - 102 => 'HTTP/1.1 102 Processing', - 200 => 'HTTP/1.1 200 OK', - 201 => 'HTTP/1.1 201 Created', - 202 => 'HTTP/1.1 202 Accepted', - 203 => 'HTTP/1.1 203 Non-Authoritative Information', - 204 => 'HTTP/1.1 204 No Content', - 205 => 'HTTP/1.1 205 Reset Content', - 206 => 'HTTP/1.1 206 Partial Content', - 207 => 'HTTP/1.1 207 Multi-Status', - 208 => 'HTTP/1.1 208 Already Reported', - 226 => 'HTTP/1.1 226 IM Used', + 100 => 'HTTP/1.1 100 Continue', + 101 => 'HTTP/1.1 101 Switching Protocols', + 102 => 'HTTP/1.1 102 Processing', + 200 => 'HTTP/1.1 200 OK', + 201 => 'HTTP/1.1 201 Created', + 202 => 'HTTP/1.1 202 Accepted', + 203 => 'HTTP/1.1 203 Non-Authoritative Information', + 204 => 'HTTP/1.1 204 No Content', + 205 => 'HTTP/1.1 205 Reset Content', + 206 => 'HTTP/1.1 206 Partial Content', + 207 => 'HTTP/1.1 207 Multi-Status', + 208 => 'HTTP/1.1 208 Already Reported', + 226 => 'HTTP/1.1 226 IM Used', 300 => 'HTTP/1.1 300 Multiple Choices', 301 => 'HTTP/1.1 301 Moved Permanently', 302 => 'HTTP/1.1 302 Found', @@ -104,45 +104,45 @@ class JApplicationWeb extends JApplicationBase 306 => 'HTTP/1.1 306 (Unused)', 307 => 'HTTP/1.1 307 Temporary Redirect', 308 => 'HTTP/1.1 308 Permanent Redirect', - 400 => 'HTTP/1.1 400 Bad Request', - 401 => 'HTTP/1.1 401 Unauthorized', - 402 => 'HTTP/1.1 402 Payment Required', - 403 => 'HTTP/1.1 403 Forbidden', - 404 => 'HTTP/1.1 404 Not Found', - 405 => 'HTTP/1.1 405 Method Not Allowed', - 406 => 'HTTP/1.1 406 Not Acceptable', - 407 => 'HTTP/1.1 407 Proxy Authentication Required', - 408 => 'HTTP/1.1 408 Request Timeout', - 409 => 'HTTP/1.1 409 Conflict', - 410 => 'HTTP/1.1 410 Gone', - 411 => 'HTTP/1.1 411 Length Required', - 412 => 'HTTP/1.1 412 Precondition Failed', - 413 => 'HTTP/1.1 413 Payload Too Large', - 414 => 'HTTP/1.1 414 URI Too Long', - 415 => 'HTTP/1.1 415 Unsupported Media Type', - 416 => 'HTTP/1.1 416 Range Not Satisfiable', - 417 => 'HTTP/1.1 417 Expectation Failed', - 418 => 'HTTP/1.1 418 I\'m a teapot', - 421 => 'HTTP/1.1 421 Misdirected Request', - 422 => 'HTTP/1.1 422 Unprocessable Entity', - 423 => 'HTTP/1.1 423 Locked', - 424 => 'HTTP/1.1 424 Failed Dependency', - 426 => 'HTTP/1.1 426 Upgrade Required', - 428 => 'HTTP/1.1 428 Precondition Required', - 429 => 'HTTP/1.1 429 Too Many Requests', - 431 => 'HTTP/1.1 431 Request Header Fields Too Large', - 451 => 'HTTP/1.1 451 Unavailable For Legal Reasons', - 500 => 'HTTP/1.1 500 Internal Server Error', - 501 => 'HTTP/1.1 501 Not Implemented', - 502 => 'HTTP/1.1 502 Bad Gateway', - 503 => 'HTTP/1.1 503 Service Unavailable', - 504 => 'HTTP/1.1 504 Gateway Timeout', - 505 => 'HTTP/1.1 505 HTTP Version Not Supported', - 506 => 'HTTP/1.1 506 Variant Also Negotiates', - 507 => 'HTTP/1.1 507 Insufficient Storage', - 508 => 'HTTP/1.1 508 Loop Detected', - 510 => 'HTTP/1.1 510 Not Extended', - 511 => 'HTTP/1.1 511 Network Authentication Required', + 400 => 'HTTP/1.1 400 Bad Request', + 401 => 'HTTP/1.1 401 Unauthorized', + 402 => 'HTTP/1.1 402 Payment Required', + 403 => 'HTTP/1.1 403 Forbidden', + 404 => 'HTTP/1.1 404 Not Found', + 405 => 'HTTP/1.1 405 Method Not Allowed', + 406 => 'HTTP/1.1 406 Not Acceptable', + 407 => 'HTTP/1.1 407 Proxy Authentication Required', + 408 => 'HTTP/1.1 408 Request Timeout', + 409 => 'HTTP/1.1 409 Conflict', + 410 => 'HTTP/1.1 410 Gone', + 411 => 'HTTP/1.1 411 Length Required', + 412 => 'HTTP/1.1 412 Precondition Failed', + 413 => 'HTTP/1.1 413 Payload Too Large', + 414 => 'HTTP/1.1 414 URI Too Long', + 415 => 'HTTP/1.1 415 Unsupported Media Type', + 416 => 'HTTP/1.1 416 Range Not Satisfiable', + 417 => 'HTTP/1.1 417 Expectation Failed', + 418 => 'HTTP/1.1 418 I\'m a teapot', + 421 => 'HTTP/1.1 421 Misdirected Request', + 422 => 'HTTP/1.1 422 Unprocessable Entity', + 423 => 'HTTP/1.1 423 Locked', + 424 => 'HTTP/1.1 424 Failed Dependency', + 426 => 'HTTP/1.1 426 Upgrade Required', + 428 => 'HTTP/1.1 428 Precondition Required', + 429 => 'HTTP/1.1 429 Too Many Requests', + 431 => 'HTTP/1.1 431 Request Header Fields Too Large', + 451 => 'HTTP/1.1 451 Unavailable For Legal Reasons', + 500 => 'HTTP/1.1 500 Internal Server Error', + 501 => 'HTTP/1.1 501 Not Implemented', + 502 => 'HTTP/1.1 502 Bad Gateway', + 503 => 'HTTP/1.1 503 Service Unavailable', + 504 => 'HTTP/1.1 504 Gateway Timeout', + 505 => 'HTTP/1.1 505 HTTP Version Not Supported', + 506 => 'HTTP/1.1 506 Variant Also Negotiates', + 507 => 'HTTP/1.1 507 Insufficient Storage', + 508 => 'HTTP/1.1 508 Loop Detected', + 510 => 'HTTP/1.1 510 Not Extended', + 511 => 'HTTP/1.1 511 Network Authentication Required', ); /** From 8b197ec98b32f76e16c1ee1245517d7401a79e57 Mon Sep 17 00:00:00 2001 From: Matias Aguirre Date: Tue, 30 May 2017 10:31:52 -0300 Subject: [PATCH 010/148] Namespace document --- .../joomla/document/feed/renderer/atom.php | 27 ------ .../joomla/document/feed/renderer/rss.php | 23 ----- .../document/html/renderer/component.php | 22 ----- .../joomla/document/html/renderer/head.php | 22 ----- .../joomla/document/html/renderer/message.php | 22 ----- .../joomla/document/html/renderer/module.php | 22 ----- .../joomla/document/html/renderer/modules.php | 22 ----- .../Joomla/CMS/Document/Document.php} | 97 ++++++++++--------- .../Joomla/CMS/Document/DocumentError.php} | 29 +++--- .../Joomla/CMS/Document/DocumentFeed.php} | 54 ++++++----- .../Joomla/CMS/Document/DocumentHtml.php} | 66 +++++++------ .../Joomla/CMS/Document/DocumentImage.php} | 15 +-- .../Joomla/CMS/Document/DocumentJson.php} | 19 ++-- .../CMS/Document/DocumentOpensearch.php} | 42 ++++---- .../Joomla/CMS/Document/DocumentRaw.php} | 15 +-- .../Joomla/CMS/Document/DocumentRenderer.php} | 18 ++-- .../Joomla/CMS/Document/DocumentXml.php} | 17 ++-- .../Renderer/Feed/RendererFeedAtom.php} | 32 +++--- .../Renderer/Feed/RendererFeedRss.php} | 38 ++++---- .../Renderer/Html/RendererHtmlComponent.php} | 15 +-- .../Renderer/Html/RendererHtmlHead.php} | 22 +++-- .../Renderer/Html/RendererHtmlMessage.php} | 25 +++-- .../Renderer/Html/RendererHtmlModule.php} | 25 +++-- .../Renderer/Html/RendererHtmlModules.php} | 27 +++--- 24 files changed, 311 insertions(+), 405 deletions(-) delete mode 100644 libraries/joomla/document/feed/renderer/atom.php delete mode 100644 libraries/joomla/document/feed/renderer/rss.php delete mode 100644 libraries/joomla/document/html/renderer/component.php delete mode 100644 libraries/joomla/document/html/renderer/head.php delete mode 100644 libraries/joomla/document/html/renderer/message.php delete mode 100644 libraries/joomla/document/html/renderer/module.php delete mode 100644 libraries/joomla/document/html/renderer/modules.php rename libraries/{joomla/document/document.php => src/Joomla/CMS/Document/Document.php} (87%) rename libraries/{joomla/document/error.php => src/Joomla/CMS/Document/DocumentError.php} (83%) rename libraries/{joomla/document/feed.php => src/Joomla/CMS/Document/DocumentFeed.php} (81%) rename libraries/{joomla/document/html.php => src/Joomla/CMS/Document/DocumentHtml.php} (90%) rename libraries/{joomla/document/image.php => src/Joomla/CMS/Document/DocumentImage.php} (74%) rename libraries/{joomla/document/json.php => src/Joomla/CMS/Document/DocumentJson.php} (77%) rename libraries/{joomla/document/opensearch.php => src/Joomla/CMS/Document/DocumentOpensearch.php} (83%) rename libraries/{joomla/document/raw.php => src/Joomla/CMS/Document/DocumentRaw.php} (66%) rename libraries/{joomla/document/renderer.php => src/Joomla/CMS/Document/DocumentRenderer.php} (79%) rename libraries/{joomla/document/xml.php => src/Joomla/CMS/Document/DocumentXml.php} (71%) rename libraries/{joomla/document/renderer/feed/atom.php => src/Joomla/CMS/Document/Renderer/Feed/RendererFeedAtom.php} (86%) rename libraries/{joomla/document/renderer/feed/rss.php => src/Joomla/CMS/Document/Renderer/Feed/RendererFeedRss.php} (86%) rename libraries/{joomla/document/renderer/html/component.php => src/Joomla/CMS/Document/Renderer/Html/RendererHtmlComponent.php} (57%) rename libraries/{joomla/document/renderer/html/head.php => src/Joomla/CMS/Document/Renderer/Html/RendererHtmlHead.php} (94%) rename libraries/{joomla/document/renderer/html/message.php => src/Joomla/CMS/Document/Renderer/Html/RendererHtmlMessage.php} (64%) rename libraries/{joomla/document/renderer/html/module.php => src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModule.php} (71%) rename libraries/{joomla/document/renderer/html/modules.php => src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModules.php} (60%) diff --git a/libraries/joomla/document/feed/renderer/atom.php b/libraries/joomla/document/feed/renderer/atom.php deleted file mode 100644 index bd81a81ac49bb..0000000000000 --- a/libraries/joomla/document/feed/renderer/atom.php +++ /dev/null @@ -1,27 +0,0 @@ - 'auto', 'conditional' => 'lt IE 9') * @param array $attribs Array of attributes. Example: array('id' => 'scriptid', 'async' => 'async', 'data-test' => 1) * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 * @deprecated 4.0 The (url, mime, defer, async) method signature is deprecated, use (url, options, attributes) instead. @@ -462,7 +463,7 @@ public function addScript($url, $options = array(), $attribs = array()) // B/C before 3.7.0 if (!is_array($options) && (!is_array($attribs) || $attribs === array())) { - JLog::add('The addScript method signature used has changed, use (url, options, attributes) instead.', JLog::WARNING, 'deprecated'); + \JLog::add('The addScript method signature used has changed, use (url, options, attributes) instead.', \JLog::WARNING, 'deprecated'); $argList = func_get_args(); $options = array(); @@ -507,14 +508,14 @@ public function addScript($url, $options = array(), $attribs = array()) * @param array $options Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') * @param array $attribs Array of attributes. Example: array('id' => 'scriptid', 'async' => 'async', 'data-test' => 1) * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 3.2 * @deprecated 4.0 This method is deprecated, use addScript(url, options, attributes) instead. */ public function addScriptVersion($url, $options = array(), $attribs = array()) { - JLog::add('The method is deprecated, use addScript(url, attributes, options) instead.', JLog::WARNING, 'deprecated'); + \JLog::add('The method is deprecated, use addScript(url, attributes, options) instead.', \JLog::WARNING, 'deprecated'); // B/C before 3.7.0 if (!is_array($options) && (!is_array($attribs) || $attribs === array())) @@ -559,7 +560,7 @@ public function addScriptVersion($url, $options = array(), $attribs = array()) * @param string $content Script * @param string $type Scripting mime (defaults to 'text/javascript') * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -584,7 +585,7 @@ public function addScriptDeclaration($content, $type = 'text/javascript') * @param mixed $options Scrip options as array or string * @param bool $merge Whether merge with existing (true) or replace (false) * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 3.5 */ @@ -635,7 +636,7 @@ public function getScriptOptions($key = null) * @param array $options Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') * @param array $attribs Array of attributes. Example: array('id' => 'stylesheet', 'data-test' => 1) * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 * @deprecated 4.0 The (url, mime, media, attribs) method signature is deprecated, use (url, options, attributes) instead. @@ -645,7 +646,7 @@ public function addStyleSheet($url, $options = array(), $attribs = array()) // B/C before 3.7.0 if (is_string($options)) { - JLog::add('The addStyleSheet method signature used has changed, use (url, options, attributes) instead.', JLog::WARNING, 'deprecated'); + \JLog::add('The addStyleSheet method signature used has changed, use (url, options, attributes) instead.', \JLog::WARNING, 'deprecated'); $argList = func_get_args(); $options = array(); @@ -698,14 +699,14 @@ public function addStyleSheet($url, $options = array(), $attribs = array()) * @param array $options Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') * @param array $attribs Array of attributes. Example: array('id' => 'stylesheet', 'data-test' => 1) * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 3.2 * @deprecated 4.0 This method is deprecated, use addStyleSheet(url, options, attributes) instead. */ public function addStyleSheetVersion($url, $options = array(), $attribs = array()) { - JLog::add('The method is deprecated, use addStyleSheet(url, attributes, options) instead.', JLog::WARNING, 'deprecated'); + \JLog::add('The method is deprecated, use addStyleSheet(url, attributes, options) instead.', \JLog::WARNING, 'deprecated'); // B/C before 3.7.0 if (!is_array($options) && (!is_array($attribs) || $attribs === array())) @@ -750,7 +751,7 @@ public function addStyleSheetVersion($url, $options = array(), $attribs = array( * @param string $content Style declarations * @param string $type Type of stylesheet (defaults to 'text/css') * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -773,7 +774,7 @@ public function addStyleDeclaration($content, $type = 'text/css') * * @param string $type Charset encoding string * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -801,7 +802,7 @@ public function getCharset() * * @param string $lang The language to be set * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -829,7 +830,7 @@ public function getLanguage() * * @param string $dir The language direction to be set * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -857,7 +858,7 @@ public function getDirection() * * @param string $title The title to be set * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -885,7 +886,7 @@ public function getTitle() * * @param string $mediaVersion Media version to use * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 3.2 */ @@ -913,7 +914,7 @@ public function getMediaVersion() * * @param string $base The base URI to be set * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -941,7 +942,7 @@ public function getBase() * * @param string $description The description to set * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -969,7 +970,7 @@ public function getDescription() * * @param string $url A url * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -997,7 +998,7 @@ public function getLink() * * @param string $generator The generator to be set * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -1025,7 +1026,7 @@ public function getGenerator() * * @param string $date The date to be set * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -1060,7 +1061,7 @@ public function getModifiedDate() * @param string $type The document type to be sent * @param boolean $sync Should the type be synced with HTML? * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 * @@ -1096,7 +1097,7 @@ public function getMimeEncoding() * * @param string $style "win", "mac", "unix" or custom string. * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -1137,7 +1138,7 @@ public function _getLineEnd() * * @param string $string String used to indent ("\11", "\t", ' ', etc.). * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -1165,7 +1166,7 @@ public function _getTab() * * @param string $type The renderer type * - * @return JDocumentRenderer + * @return DocumentRenderer * * @since 11.1 * @throws RuntimeException @@ -1173,12 +1174,12 @@ public function _getTab() public function loadRenderer($type) { // New class name format adds the format type to the class name - $class = 'JDocumentRenderer' . ucfirst($this->getType()) . ucfirst($type); + $class = 'DocumentRenderer' . ucfirst($this->getType()) . ucfirst($type); if (!class_exists($class)) { // "Legacy" class name structure - $class = 'JDocumentRenderer' . $type; + $class = 'DocumentRenderer' . $type; if (!class_exists($class)) { @@ -1187,17 +1188,17 @@ public function loadRenderer($type) if (!file_exists($path)) { - throw new RuntimeException('Unable to load renderer class', 500); + throw new \RuntimeException('Unable to load renderer class', 500); } - JLoader::register($class, $path); + \JLoader::register($class, $path); - JLog::add('Non-autoloadable JDocumentRenderer subclasses are deprecated, support will be removed in 4.0.', JLog::WARNING, 'deprecated'); + \JLog::add('Non-autoloadable DocumentRenderer subclasses are deprecated, support will be removed in 4.0.', \JLog::WARNING, 'deprecated'); // If the class still doesn't exist after including the path, we've got issues if (!class_exists($class)) { - throw new RuntimeException('Unable to load renderer class', 500); + throw new \RuntimeException('Unable to load renderer class', 500); } } } @@ -1210,7 +1211,7 @@ public function loadRenderer($type) * * @param array $params The array of parameters * - * @return JDocument instance of $this to allow chaining + * @return Document instance of $this to allow chaining * * @since 11.1 */ @@ -1231,7 +1232,7 @@ public function parse($params = array()) */ public function render($cache = false, $params = array()) { - $app = JFactory::getApplication(); + $app = \JFactory::getApplication(); if ($mdate = $this->getModifiedDate()) { diff --git a/libraries/joomla/document/error.php b/libraries/src/Joomla/CMS/Document/DocumentError.php similarity index 83% rename from libraries/joomla/document/error.php rename to libraries/src/Joomla/CMS/Document/DocumentError.php index 886db76fcdf24..2949e2dfa13d0 100644 --- a/libraries/joomla/document/error.php +++ b/libraries/src/Joomla/CMS/Document/DocumentError.php @@ -1,20 +1,25 @@ get('error_reporting'); + $errorReporting = \JFactory::getConfig()->get('error_reporting'); if ($errorReporting === "development" || $errorReporting === "maximum") { $status .= ' ' . str_replace("\n", ' ', $this->_error->getMessage()); } - JFactory::getApplication()->setHeader('status', $status); + \JFactory::getApplication()->setHeader('status', $status); $file = 'error.php'; // Check template $directory = isset($params['directory']) ? $params['directory'] : 'templates'; - $template = isset($params['template']) ? JFilterInput::getInstance()->clean($params['template'], 'cmd') : 'system'; + $template = isset($params['template']) ? \JFilterInput::getInstance()->clean($params['template'], 'cmd') : 'system'; if (!file_exists($directory . '/' . $template . '/' . $file)) { @@ -152,15 +157,15 @@ public function render($cache = false, $params = array()) } // Set variables - $this->baseurl = JUri::base(true); + $this->baseurl = Uri::base(true); $this->template = $template; $this->debug = isset($params['debug']) ? $params['debug'] : false; $this->error = $this->_error; // Load the language file for the template if able - if (JFactory::$language) + if (\JFactory::$language) { - $lang = JFactory::getLanguage(); + $lang = \JFactory::getLanguage(); // 1.5 or core then 1.6 $lang->load('tpl_' . $template, JPATH_BASE, null, false, true) @@ -226,6 +231,6 @@ public function renderBacktrace() // Add the position of the actual file array_unshift($backtrace, array('file' => $this->_error->getFile(), 'line' => $this->_error->getLine(), 'function' => '')); - return JLayoutHelper::render('joomla.error.backtrace', array('backtrace' => $backtrace)); + return LayoutHelper::render('joomla.error.backtrace', array('backtrace' => $backtrace)); } } diff --git a/libraries/joomla/document/feed.php b/libraries/src/Joomla/CMS/Document/DocumentFeed.php similarity index 81% rename from libraries/joomla/document/feed.php rename to libraries/src/Joomla/CMS/Document/DocumentFeed.php index 514250d15c439..897f912dd3156 100644 --- a/libraries/joomla/document/feed.php +++ b/libraries/src/Joomla/CMS/Document/DocumentFeed.php @@ -1,20 +1,24 @@ input->get('type', 'rss'); + $type = \JFactory::getApplication()->input->get('type', 'rss'); // Instantiate feed renderer and set the mime encoding $renderer = $this->loadRenderer(($type) ? $type : 'rss'); - if (!($renderer instanceof JDocumentRenderer)) + if (!($renderer instanceof DocumentRenderer)) { - throw new Exception(JText::_('JGLOBAL_RESOURCE_NOT_FOUND'), 404); + throw new \Exception(JText::_('JGLOBAL_RESOURCE_NOT_FOUND'), 404); } $this->setMimeEncoding($renderer->getContentType()); @@ -224,15 +228,15 @@ public function render($cache = false, $params = array()) } /** - * Adds an JFeedItem to the feed. + * Adds an FeedItem to the feed. * - * @param JFeedItem $item The feeditem to add to the feed. + * @param FeedItem $item The feeditem to add to the feed. * - * @return JDocumentFeed instance of $this to allow chaining + * @return DocumentFeed instance of $this to allow chaining * * @since 11.1 */ - public function addItem(JFeedItem $item) + public function addItem(FeedItem $item) { $item->source = $this->link; $this->items[] = $item; @@ -242,11 +246,11 @@ public function addItem(JFeedItem $item) } /** - * JFeedItem is an internal class that stores feed item information + * FeedItem is an internal class that stores feed item information * * @since 11.1 */ -class JFeedItem +class FeedItem { /** * Title item element @@ -321,7 +325,7 @@ class JFeedItem /** * Enclosure element * - * @var JFeedEnclosure + * @var FeedEnclosure * @since 11.1 */ public $enclosure = null; @@ -369,15 +373,15 @@ class JFeedItem public $source; /** - * Set the JFeedEnclosure for this item + * Set the FeedEnclosure for this item * - * @param JFeedEnclosure $enclosure The JFeedEnclosure to add to the feed. + * @param FeedEnclosure $enclosure The FeedEnclosure to add to the feed. * - * @return JFeedItem instance of $this to allow chaining + * @return FeedItem instance of $this to allow chaining * * @since 11.1 */ - public function setEnclosure(JFeedEnclosure $enclosure) + public function setEnclosure(FeedEnclosure $enclosure) { $this->enclosure = $enclosure; @@ -386,11 +390,11 @@ public function setEnclosure(JFeedEnclosure $enclosure) } /** - * JFeedEnclosure is an internal class that stores feed enclosure information + * FeedEnclosure is an internal class that stores feed enclosure information * * @since 11.1 */ -class JFeedEnclosure +class FeedEnclosure { /** * URL enclosure element @@ -424,11 +428,11 @@ class JFeedEnclosure } /** - * JFeedImage is an internal class that stores feed image information + * FeedImage is an internal class that stores feed image information * * @since 11.1 */ -class JFeedImage +class FeedImage { /** * Title image attribute diff --git a/libraries/joomla/document/html.php b/libraries/src/Joomla/CMS/Document/DocumentHtml.php similarity index 90% rename from libraries/joomla/document/html.php rename to libraries/src/Joomla/CMS/Document/DocumentHtml.php index fdaff162b168d..810af2ba79a71 100644 --- a/libraries/joomla/document/html.php +++ b/libraries/src/Joomla/CMS/Document/DocumentHtml.php @@ -1,24 +1,30 @@ ` tags @@ -140,7 +146,7 @@ public function getHeadData() $data['scripts'] = $this->_scripts; $data['script'] = $this->_script; $data['custom'] = $this->_custom; - $data['scriptText'] = JText::script(); + $data['scriptText'] = \JText::script(); return $data; } @@ -150,7 +156,7 @@ public function getHeadData() * * @param mixed $types type or types of the heads elements to reset * - * @return JDocumentHTML instance of $this to allow chaining + * @return DocumentHtml instance of $this to allow chaining * * @since 3.7.0 */ @@ -223,7 +229,7 @@ private function resetHeadDatum($type) * * @param array $data The document head data in array form * - * @return JDocumentHTML|null instance of $this to allow chaining or null for empty input data + * @return DocumentHtml|null instance of $this to allow chaining or null for empty input data * * @since 11.1 */ @@ -249,7 +255,7 @@ public function setHeadData($data) { foreach ($data['scriptText'] as $key => $string) { - JText::script($key, $string); + \JText::script($key, $string); } } @@ -261,7 +267,7 @@ public function setHeadData($data) * * @param array $data The document head data in array form * - * @return JDocumentHTML|null instance of $this to allow chaining or null for empty input data + * @return DocumentHtml|null instance of $this to allow chaining or null for empty input data * * @since 11.1 */ @@ -345,7 +351,7 @@ public function mergeHeadData($data) * @param string $relType Relation type attribute. Either rel or rev (default: 'rel'). * @param array $attribs Associative array of remaining attributes. * - * @return JDocumentHTML instance of $this to allow chaining + * @return DocumentHtml instance of $this to allow chaining * * @since 11.1 */ @@ -369,7 +375,7 @@ public function addHeadLink($href, $relation, $relType = 'rel', $attribs = array * @param string $type File type * @param string $relation Relation of link * - * @return JDocumentHTML instance of $this to allow chaining + * @return DocumentHtml instance of $this to allow chaining * * @since 11.1 */ @@ -386,7 +392,7 @@ public function addFavicon($href, $type = 'image/vnd.microsoft.icon', $relation * * @param string $html The HTML to add to the head * - * @return JDocumentHTML instance of $this to allow chaining + * @return DocumentHtml instance of $this to allow chaining * * @since 11.1 */ @@ -456,13 +462,13 @@ public function getBuffer($type = null, $name = null, $attribs = array()) if ($this->_caching == true && $type == 'modules') { - $cache = JFactory::getCache('com_modules', ''); + $cache = \JFactory::getCache('com_modules', ''); $hash = md5(serialize(array($name, $attribs, null, $renderer))); $cbuffer = $cache->get('cbuffer_' . $type); if (isset($cbuffer[$hash])) { - return JCache::getWorkarounds($cbuffer[$hash], array('mergehead' => 1)); + return Cache::getWorkarounds($cbuffer[$hash], array('mergehead' => 1)); } else { @@ -474,7 +480,7 @@ public function getBuffer($type = null, $name = null, $attribs = array()) $this->setBuffer($renderer->render($name, $attribs, null), $type, $name); $data = parent::$_buffer[$type][$name][$title]; - $tmpdata = JCache::setWorkarounds($data, $options); + $tmpdata = Cache::setWorkarounds($data, $options); $cbuffer[$hash] = $tmpdata; @@ -495,7 +501,7 @@ public function getBuffer($type = null, $name = null, $attribs = array()) * @param string $content The content to be set in the buffer. * @param array $options Array of optional elements. * - * @return JDocumentHTML instance of $this to allow chaining + * @return DocumentHtml instance of $this to allow chaining * * @since 11.1 */ @@ -521,7 +527,7 @@ public function setBuffer($content, $options = array()) * * @param array $params Parameters for fetching the template * - * @return JDocumentHTML instance of $this to allow chaining + * @return DocumentHtml instance of $this to allow chaining * * @since 11.1 */ @@ -573,12 +579,12 @@ public function countModules($condition) { $name = strtolower($words[0]); $result = ((isset(parent::$_buffer['modules'][$name])) && (parent::$_buffer['modules'][$name] === false)) - ? 0 : count(JModuleHelper::getModules($name)); + ? 0 : count(ModuleHelper::getModules($name)); return $result; } - JLog::add('Using an expression in JDocumentHtml::countModules() is deprecated.', JLog::WARNING, 'deprecated'); + Log::add('Using an expression in DocumentHtml::countModules() is deprecated.', Log::WARNING, 'deprecated'); for ($i = 0, $n = count($words); $i < $n; $i += 2) { @@ -586,7 +592,7 @@ public function countModules($condition) $name = strtolower($words[$i]); $words[$i] = ((isset(parent::$_buffer['modules'][$name])) && (parent::$_buffer['modules'][$name] === false)) ? 0 - : count(JModuleHelper::getModules($name)); + : count(ModuleHelper::getModules($name)); } $str = 'return ' . implode(' ', $words) . ';'; @@ -607,8 +613,8 @@ public function countMenuChildren() if (!isset($children)) { - $db = JFactory::getDbo(); - $app = JFactory::getApplication(); + $db = \JFactory::getDbo(); + $app = \JFactory::getApplication(); $menu = $app->getMenu(); $active = $menu->getActive(); $children = 0; @@ -677,7 +683,7 @@ protected function _loadTemplate($directory, $filename) * * @param array $params Parameters to determine the template * - * @return JDocumentHTML instance of $this to allow chaining + * @return DocumentHtml instance of $this to allow chaining * * @since 11.1 */ @@ -685,7 +691,7 @@ protected function _fetchTemplate($params = array()) { // Check $directory = isset($params['directory']) ? $params['directory'] : 'templates'; - $filter = JFilterInput::getInstance(); + $filter = \JFilterInput::getInstance(); $template = $filter->clean($params['template'], 'cmd'); $file = $filter->clean($params['file'], 'cmd'); @@ -700,7 +706,7 @@ protected function _fetchTemplate($params = array()) } // Load the language file for the template - $lang = JFactory::getLanguage(); + $lang = \JFactory::getLanguage(); // 1.5 or core then 1.6 $lang->load('tpl_' . $template, JPATH_BASE, null, false, true) @@ -708,7 +714,7 @@ protected function _fetchTemplate($params = array()) // Assign the variables $this->template = $template; - $this->baseurl = JUri::base(true); + $this->baseurl = Uri::base(true); $this->params = isset($params['params']) ? $params['params'] : new Registry; // Load @@ -720,7 +726,7 @@ protected function _fetchTemplate($params = array()) /** * Parse a document template * - * @return JDocumentHTML instance of $this to allow chaining + * @return DocumentHtml instance of $this to allow chaining * * @since 11.1 */ @@ -737,7 +743,7 @@ protected function _parseTemplate() for ($i = count($matches[0]) - 1; $i >= 0; $i--) { $type = $matches[1][$i]; - $attribs = empty($matches[2][$i]) ? array() : JUtility::parseAttributes($matches[2][$i]); + $attribs = empty($matches[2][$i]) ? array() : \JUtility::parseAttributes($matches[2][$i]); $name = isset($attribs['name']) ? $attribs['name'] : null; // Separate buffers to be executed first and last diff --git a/libraries/joomla/document/image.php b/libraries/src/Joomla/CMS/Document/DocumentImage.php similarity index 74% rename from libraries/joomla/document/image.php rename to libraries/src/Joomla/CMS/Document/DocumentImage.php index e861fb32c4064..aa3121083de3c 100644 --- a/libraries/joomla/document/image.php +++ b/libraries/src/Joomla/CMS/Document/DocumentImage.php @@ -1,20 +1,23 @@ input->get('type', 'png'); + $type = \JFactory::getApplication()->input->get('type', 'png'); switch ($type) { diff --git a/libraries/joomla/document/json.php b/libraries/src/Joomla/CMS/Document/DocumentJson.php similarity index 77% rename from libraries/joomla/document/json.php rename to libraries/src/Joomla/CMS/Document/DocumentJson.php index 7fb5107931b3b..629c9235e6c7b 100644 --- a/libraries/joomla/document/json.php +++ b/libraries/src/Joomla/CMS/Document/DocumentJson.php @@ -1,21 +1,24 @@ allowCache(false); @@ -97,7 +100,7 @@ public function getName() * * @param string $name Document name * - * @return JDocumentJSON instance of $this to allow chaining + * @return DocumentJson instance of $this to allow chaining * * @since 11.1 */ diff --git a/libraries/joomla/document/opensearch.php b/libraries/src/Joomla/CMS/Document/DocumentOpensearch.php similarity index 83% rename from libraries/joomla/document/opensearch.php rename to libraries/src/Joomla/CMS/Document/DocumentOpensearch.php index cfd04c8252606..d3a7bfa7e6a78 100644 --- a/libraries/joomla/document/opensearch.php +++ b/libraries/src/Joomla/CMS/Document/DocumentOpensearch.php @@ -1,21 +1,25 @@ _mime = 'application/opensearchdescription+xml'; // Add the URL for self updating - $update = new JOpenSearchUrl; + $update = new OpenSearchUrl; $update->type = 'application/opensearchdescription+xml'; $update->rel = 'self'; - $update->template = JRoute::_(JUri::getInstance()); + $update->template = \JRoute::_(Uri::getInstance()); $this->addUrl($update); // Add the favicon as the default image // Try to find a favicon by checking the template and root folder - $app = JFactory::getApplication(); + $app = \JFactory::getApplication(); $dirs = array(JPATH_THEMES . '/' . $app->getTemplate(), JPATH_BASE); foreach ($dirs as $dir) @@ -80,11 +84,11 @@ public function __construct($options = array()) { $path = str_replace(JPATH_BASE, '', $dir); $path = str_replace('\\', '/', $path); - $favicon = new JOpenSearchImage; + $favicon = new OpenSearchImage; if ($path == '') { - $favicon->data = JUri::base() . 'favicon.ico'; + $favicon->data = Uri::base() . 'favicon.ico'; } else { @@ -93,7 +97,7 @@ public function __construct($options = array()) $path = substr($path, 1); } - $favicon->data = JUri::base() . $path . '/favicon.ico'; + $favicon->data = Uri::base() . $path . '/favicon.ico'; } $favicon->height = '16'; @@ -195,13 +199,13 @@ public function setShortName($name) /** * Adds a URL to the OpenSearch description. * - * @param JOpenSearchUrl $url The url to add to the description. + * @param OpenSearchUrl $url The url to add to the description. * * @return JDocumentOpensearch instance of $this to allow chaining * * @since 11.1 */ - public function addUrl(JOpenSearchUrl $url) + public function addUrl(OpenSearchUrl $url) { $this->_urls[] = $url; @@ -211,13 +215,13 @@ public function addUrl(JOpenSearchUrl $url) /** * Adds an image to the OpenSearch description. * - * @param JOpenSearchImage $image The image to add to the description. + * @param OpenSearchImage $image The image to add to the description. * * @return JDocumentOpensearch instance of $this to allow chaining * * @since 11.1 */ - public function addImage(JOpenSearchImage $image) + public function addImage(OpenSearchImage $image) { $this->_images[] = $image; @@ -226,11 +230,11 @@ public function addImage(JOpenSearchImage $image) } /** - * JOpenSearchUrl is an internal class that stores the search URLs for the OpenSearch description + * OpenSearchUrl is an internal class that stores the search URLs for the OpenSearch description * * @since 11.1 */ -class JOpenSearchUrl +class OpenSearchUrl { /** * Type item element @@ -264,11 +268,11 @@ class JOpenSearchUrl } /** - * JOpenSearchImage is an internal class that stores Images for the OpenSearch Description + * OpenSearchImage is an internal class that stores Images for the OpenSearch Description * * @since 11.1 */ -class JOpenSearchImage +class OpenSearchImage { /** * The images MIME type diff --git a/libraries/joomla/document/raw.php b/libraries/src/Joomla/CMS/Document/DocumentRaw.php similarity index 66% rename from libraries/joomla/document/raw.php rename to libraries/src/Joomla/CMS/Document/DocumentRaw.php index eb781dc6d7b15..e6a52d21c11a1 100644 --- a/libraries/joomla/document/raw.php +++ b/libraries/src/Joomla/CMS/Document/DocumentRaw.php @@ -1,20 +1,23 @@ _doc = $doc; } @@ -82,7 +86,7 @@ public function getContentType() */ protected function _relToAbs($text) { - $base = JUri::base(); + $base = Uri::base(); $text = preg_replace("/(href|src)=\"(?!http|ftp|https|mailto|data|\/\/)([^\"]*)\"/", "$1=\"$base\$2\"", $text); return $text; diff --git a/libraries/joomla/document/xml.php b/libraries/src/Joomla/CMS/Document/DocumentXml.php similarity index 71% rename from libraries/joomla/document/xml.php rename to libraries/src/Joomla/CMS/Document/DocumentXml.php index 6a63fbf7b1bcf..42c7aa4c242b0 100644 --- a/libraries/joomla/document/xml.php +++ b/libraries/src/Joomla/CMS/Document/DocumentXml.php @@ -1,20 +1,23 @@ setHeader('Content-disposition', 'inline; filename="' . $this->getName() . '.xml"', true); + \JFactory::getApplication()->setHeader('Content-disposition', 'inline; filename="' . $this->getName() . '.xml"', true); return $this->getBuffer(); } diff --git a/libraries/joomla/document/renderer/feed/atom.php b/libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedAtom.php similarity index 86% rename from libraries/joomla/document/renderer/feed/atom.php rename to libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedAtom.php index 9e6aaade40bea..00f8b6976b0bd 100644 --- a/libraries/joomla/document/renderer/feed/atom.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedAtom.php @@ -1,16 +1,20 @@ get('offset')); - $now = JFactory::getDate(); + $tz = new \DateTimeZone($app->get('offset')); + $now = \JFactory::getDate(); $now->setTimeZone($tz); $data = $this->_doc; - $url = JUri::getInstance()->toString(array('scheme', 'user', 'pass', 'host', 'port')); - $syndicationURL = JRoute::_('&format=feed&type=atom'); + $url = Uri::getInstance()->toString(array('scheme', 'user', 'pass', 'host', 'port')); + $syndicationURL = \JRoute::_('&format=feed&type=atom'); $title = $data->getTitle(); @@ -141,7 +145,7 @@ public function render($name = '', $params = null, $content = null) $data->items[$i]->date = $now->toUnix(); } - $itemDate = JFactory::getDate($data->items[$i]->date); + $itemDate = \JFactory::getDate($data->items[$i]->date); $itemDate->setTimeZone($tz); $feed .= " " . htmlspecialchars($itemDate->toISO8601(true), ENT_COMPAT, 'UTF-8') . "\n"; $feed .= " " . htmlspecialchars($itemDate->toISO8601(true), ENT_COMPAT, 'UTF-8') . "\n"; diff --git a/libraries/joomla/document/renderer/feed/rss.php b/libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedRss.php similarity index 86% rename from libraries/joomla/document/renderer/feed/rss.php rename to libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedRss.php index c04238b0abe3e..0a774e6f7806c 100644 --- a/libraries/joomla/document/renderer/feed/rss.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedRss.php @@ -1,23 +1,27 @@ get('offset')); - $now = JFactory::getDate(); + $tz = new \DateTimeZone($app->get('offset')); + $now = \JFactory::getDate(); $now->setTimeZone($tz); $data = $this->_doc; - $url = JUri::getInstance()->toString(array('scheme', 'user', 'pass', 'host', 'port')); - $syndicationURL = JRoute::_('&format=feed&type=rss'); + $url = Uri::getInstance()->toString(array('scheme', 'user', 'pass', 'host', 'port')); + $syndicationURL = \JRoute::_('&format=feed&type=rss'); $title = $data->getTitle(); if ($app->get('sitename_pagetitles', 0) == 1) { - $title = JText::sprintf('JPAGETITLE', $app->get('sitename'), $data->getTitle()); + $title = \JText::sprintf('JPAGETITLE', $app->get('sitename'), $data->getTitle()); } elseif ($app->get('sitename_pagetitles', 0) == 2) { - $title = JText::sprintf('JPAGETITLE', $data->getTitle(), $app->get('sitename')); + $title = \JText::sprintf('JPAGETITLE', $data->getTitle(), $app->get('sitename')); } $feed_title = htmlspecialchars($title, ENT_COMPAT, 'UTF-8'); @@ -130,7 +134,7 @@ public function render($name = '', $params = null, $content = null) if ($data->pubDate != '') { - $pubDate = JFactory::getDate($data->pubDate); + $pubDate = \JFactory::getDate($data->pubDate); $pubDate->setTimeZone($tz); $feed .= " " . htmlspecialchars($pubDate->toRFC822(true), ENT_COMPAT, 'UTF-8') . "\n"; } @@ -240,7 +244,7 @@ public function render($name = '', $params = null, $content = null) if ($data->items[$i]->date != '') { - $itemDate = JFactory::getDate($data->items[$i]->date); + $itemDate = \JFactory::getDate($data->items[$i]->date); $itemDate->setTimeZone($tz); $feed .= " " . htmlspecialchars($itemDate->toRFC822(true), ENT_COMPAT, 'UTF-8') . "\n"; } diff --git a/libraries/joomla/document/renderer/html/component.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlComponent.php similarity index 57% rename from libraries/joomla/document/renderer/html/component.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlComponent.php index 2c7ce3b04f67f..882fac484e48b 100644 --- a/libraries/joomla/document/renderer/html/component.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlComponent.php @@ -1,20 +1,23 @@ _metaTags['name']['tags'])) { - $tagsHelper = new JHelperTags; + $tagsHelper = new TagsHelper; $document->_metaTags['name']['tags'] = implode(', ', $tagsHelper->getTagNames($document->_metaTags['name']['tags'])); } if ($document->getScriptOptions()) { - JHtml::_('behavior.core'); + \JHtml::_('behavior.core'); } // Trigger the onBeforeCompileHead event - $app = JFactory::getApplication(); + $app = \JFactory::getApplication(); $app->triggerEvent('onBeforeCompileHead'); // Get line endings diff --git a/libraries/joomla/document/renderer/html/message.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlMessage.php similarity index 64% rename from libraries/joomla/document/renderer/html/message.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlMessage.php index c6ea87b96cb6f..27c67f42c00ce 100644 --- a/libraries/joomla/document/renderer/html/message.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlMessage.php @@ -1,20 +1,25 @@ $content, ); - $app = JFactory::getApplication(); + $app = \JFactory::getApplication(); $chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/message.php'; if (file_exists($chromePath)) @@ -47,12 +52,12 @@ public function render($name, $params = array(), $content = null) if (function_exists('renderMessage')) { - JLog::add('renderMessage() is deprecated. Override system message rendering with layouts instead.', JLog::WARNING, 'deprecated'); + Log::add('renderMessage() is deprecated. Override system message rendering with layouts instead.', Log::WARNING, 'deprecated'); return renderMessage($msgList); } - return JLayoutHelper::render('joomla.system.message', $displayData); + return LayoutHelper::render('joomla.system.message', $displayData); } /** @@ -68,7 +73,7 @@ private function getData() $lists = array(); // Get the message queue - $messages = JFactory::getApplication()->getMessageQueue(); + $messages = \JFactory::getApplication()->getMessageQueue(); // Build the sorted message list if (is_array($messages) && !empty($messages)) diff --git a/libraries/joomla/document/renderer/html/module.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModule.php similarity index 71% rename from libraries/joomla/document/renderer/html/module.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModule.php index fc873510337f2..cc4cab4a8f009 100644 --- a/libraries/joomla/document/renderer/html/module.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModule.php @@ -1,22 +1,27 @@ get('cachemode', 'oldstatic'); - if ($params->get('cache', 0) == 1 && JFactory::getConfig()->get('caching') >= 1 && $cachemode != 'id' && $cachemode != 'safeuri') + if ($params->get('cache', 0) == 1 && \JFactory::getConfig()->get('caching') >= 1 && $cachemode != 'id' && $cachemode != 'safeuri') { // Default to itemid creating method and workarounds on $cacheparams = new stdClass; @@ -87,9 +92,9 @@ public function render($module, $attribs = array(), $content = null) $cacheparams->method = 'renderModule'; $cacheparams->methodparams = array($module, $attribs); - return JModuleHelper::ModuleCache($module, $params, $cacheparams); + return ModuleHelper::ModuleCache($module, $params, $cacheparams); } - return JModuleHelper::renderModule($module, $attribs); + return ModuleHelper::renderModule($module, $attribs); } } diff --git a/libraries/joomla/document/renderer/html/modules.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModules.php similarity index 60% rename from libraries/joomla/document/renderer/html/modules.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModules.php index 53c9e83560915..f3a8a40626fe6 100644 --- a/libraries/joomla/document/renderer/html/modules.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModules.php @@ -1,20 +1,25 @@ _doc->loadRenderer('module'); $buffer = ''; - $app = JFactory::getApplication(); - $user = JFactory::getUser(); + $app = \JFactory::getApplication(); + $user = \JFactory::getUser(); $frontediting = ($app->isClient('site') && $app->get('frontediting', 1) && !$user->guest); $menusEditing = ($app->get('frontediting', 1) == 2) && $user->authorise('core.edit', 'com_menus'); - foreach (JModuleHelper::getModules($position) as $mod) + foreach (ModuleHelper::getModules($position) as $mod) { $moduleHtml = $renderer->render($mod, $params, $content); if ($frontediting && trim($moduleHtml) != '' && $user->authorise('module.edit.frontend', 'com_modules.module.' . $mod->id)) { $displayData = array('moduleHtml' => &$moduleHtml, 'module' => $mod, 'position' => $position, 'menusediting' => $menusEditing); - JLayoutHelper::render('joomla.edit.frontediting_modules', $displayData); + LayoutHelper::render('joomla.edit.frontediting_modules', $displayData); } $buffer .= $moduleHtml; } - JEventDispatcher::getInstance()->trigger('onAfterRenderModules', array(&$buffer, &$params)); + \JEventDispatcher::getInstance()->trigger('onAfterRenderModules', array(&$buffer, &$params)); return $buffer; } From c30156b145fa7c05203c9f5dae7d2016b56367b8 Mon Sep 17 00:00:00 2001 From: Matias Aguirre Date: Tue, 30 May 2017 11:18:34 -0300 Subject: [PATCH 011/148] Fix class load --- libraries/classmap.php | 27 +++++++++++++++++++ .../src/Joomla/CMS/Document/Document.php | 16 ++++++++--- .../src/Joomla/CMS/Document/DocumentHtml.php | 2 +- 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/libraries/classmap.php b/libraries/classmap.php index 61bb4c169a481..c18ebe6ff5c16 100644 --- a/libraries/classmap.php +++ b/libraries/classmap.php @@ -170,6 +170,33 @@ JLoader::registerAlias('JAssociationExtensionInterface', '\\Joomla\\CMS\\Association\\AssociationExtensionInterface', '5.0'); JLoader::registerAlias('JAssociationExtensionHelper', '\\Joomla\\CMS\\Association\\AssociationExtensionHelper', '5.0'); +JLoader::registerAlias('JDocument', '\\Joomla\\CMS\\Document\\Document', '5.0'); +JLoader::registerAlias('JDocumentError', '\\Joomla\\CMS\\Document\\DocumentError', '5.0'); +JLoader::registerAlias('JDocumentFeed', '\\Joomla\\CMS\\Document\\DocumentFeed', '5.0'); +JLoader::registerAlias('JDocumentHtml', '\\Joomla\\CMS\\Document\\DocumentHtml', '5.0'); +JLoader::registerAlias('JDocumentImage', '\\Joomla\\CMS\\Document\\DocumentImage', '5.0'); +JLoader::registerAlias('JDocumentJson', '\\Joomla\\CMS\\Document\\DocumentJson', '5.0'); +JLoader::registerAlias('JDocumentOpensearch', '\\Joomla\\CMS\\Document\\DocumentOpensearch', '5.0'); +JLoader::registerAlias('JDocumentRaw', '\\Joomla\\CMS\\Document\\DocumentRaw', '5.0'); +JLoader::registerAlias('JDocumentRenderer', '\\Joomla\\CMS\\Document\\DocumentRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererFeedAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedAtom', '5.0'); +JLoader::registerAlias('JDocumentRendererFeedRss', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedRss', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlComponent', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlHead', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlMessage', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModule', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModules', '5.0'); +JLoader::registerAlias('JDocumentXml', '\\Joomla\\CMS\\Document\\DocumentXml', '5.0'); + +// Deprecated Joomla! 4.0 +JLoader::registerAlias('JDocumentRendererAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedAtom', '5.0'); +JLoader::registerAlias('JDocumentRendererRSS', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedRss', '5.0'); +JLoader::registerAlias('JDocumentRendererComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlComponent', '5.0'); +JLoader::registerAlias('JDocumentRendererHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlHead', '5.0'); +JLoader::registerAlias('JDocumentRendererMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlMessage', '5.0'); +JLoader::registerAlias('JDocumentRendererModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModule', '5.0'); +JLoader::registerAlias('JDocumentRendererModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModules', '5.0'); + JLoader::registerAlias('JInstaller', '\\Joomla\\CMS\\Installer\\Installer', '5.0'); JLoader::registerAlias('JInstallerAdapter', '\\Joomla\\CMS\\Installer\\InstallerAdapter', '5.0'); JLoader::registerAlias('JInstallerExtension', '\\Joomla\\CMS\\Installer\\InstallerExtension', '5.0'); diff --git a/libraries/src/Joomla/CMS/Document/Document.php b/libraries/src/Joomla/CMS/Document/Document.php index 16dbd6f472af9..8aa6c32a634d6 100644 --- a/libraries/src/Joomla/CMS/Document/Document.php +++ b/libraries/src/Joomla/CMS/Document/Document.php @@ -286,7 +286,12 @@ public static function getInstance($type = 'html', $attributes = array()) $ntype = null; // Determine the path and class - $class = 'Document' . ucfirst($type); + $class = __NAMESPACE__ . '\\Document' . ucfirst($type); + + if (!class_exists($class)) + { + $class = 'JDocument' . ucfirst($type); + } if (!class_exists($class)) { @@ -1173,8 +1178,13 @@ public function _getTab() */ public function loadRenderer($type) { - // New class name format adds the format type to the class name - $class = 'DocumentRenderer' . ucfirst($this->getType()) . ucfirst($type); + // Determine the path and class + $class = __NAMESPACE__ . '\\Renderer\\' . ucfirst($this->getType()) . '\\Renderer' . ucfirst($this->getType()) . ucfirst($type); + + if (!class_exists($class)) + { + $class = 'JDocumentRenderer' . ucfirst($this->getType()) . ucfirst($type); + } if (!class_exists($class)) { diff --git a/libraries/src/Joomla/CMS/Document/DocumentHtml.php b/libraries/src/Joomla/CMS/Document/DocumentHtml.php index 810af2ba79a71..1f2bd44f60db3 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentHtml.php +++ b/libraries/src/Joomla/CMS/Document/DocumentHtml.php @@ -670,7 +670,7 @@ protected function _loadTemplate($directory, $filename) { $path = str_replace(JPATH_BASE, '', $dir); $path = str_replace('\\', '/', $path); - $this->addFavicon(JUri::base(true) . $path . $icon); + $this->addFavicon(Uri::base(true) . $path . $icon); break; } } From d845eb76a47a922a6a31c8b8b10b4417fc48dbcd Mon Sep 17 00:00:00 2001 From: Matias Aguirre Date: Tue, 30 May 2017 11:24:49 -0300 Subject: [PATCH 012/148] Merge with upstream --- libraries/classmap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/classmap.php b/libraries/classmap.php index c18ebe6ff5c16..118336b3c7b96 100644 --- a/libraries/classmap.php +++ b/libraries/classmap.php @@ -197,6 +197,10 @@ JLoader::registerAlias('JDocumentRendererModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModule', '5.0'); JLoader::registerAlias('JDocumentRendererModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModules', '5.0'); +JLoader::registerAlias('JFilterInput', '\\Joomla\\CMS\\Filter\\InputFilter', '5.0'); +JLoader::registerAlias('JFilterOutput', '\\Joomla\\CMS\\Filter\\OutputFilter', '5.0'); +JLoader::registerAlias('JFilterWrapperOutput', '\\Joomla\\CMS\\Filter\\Wrapper\\OutputFilterWrapper', '5.0'); + JLoader::registerAlias('JInstaller', '\\Joomla\\CMS\\Installer\\Installer', '5.0'); JLoader::registerAlias('JInstallerAdapter', '\\Joomla\\CMS\\Installer\\InstallerAdapter', '5.0'); JLoader::registerAlias('JInstallerExtension', '\\Joomla\\CMS\\Installer\\InstallerExtension', '5.0'); From 6a22f8744f50d732cb3d2a3b1864be049be017a9 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Wed, 31 May 2017 10:01:58 +0100 Subject: [PATCH 013/148] Fix Joomla 4 deprecated classes --- libraries/classmap.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/libraries/classmap.php b/libraries/classmap.php index 118336b3c7b96..bab95c598bb5e 100644 --- a/libraries/classmap.php +++ b/libraries/classmap.php @@ -187,15 +187,13 @@ JLoader::registerAlias('JDocumentRendererHtmlModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModule', '5.0'); JLoader::registerAlias('JDocumentRendererHtmlModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModules', '5.0'); JLoader::registerAlias('JDocumentXml', '\\Joomla\\CMS\\Document\\DocumentXml', '5.0'); - -// Deprecated Joomla! 4.0 -JLoader::registerAlias('JDocumentRendererAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedAtom', '5.0'); -JLoader::registerAlias('JDocumentRendererRSS', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedRss', '5.0'); -JLoader::registerAlias('JDocumentRendererComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlComponent', '5.0'); -JLoader::registerAlias('JDocumentRendererHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlHead', '5.0'); -JLoader::registerAlias('JDocumentRendererMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlMessage', '5.0'); -JLoader::registerAlias('JDocumentRendererModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModule', '5.0'); -JLoader::registerAlias('JDocumentRendererModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModules', '5.0'); +JLoader::registerAlias('JDocumentRendererAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedAtom', '4.0'); +JLoader::registerAlias('JDocumentRendererRSS', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedRss', '4.0'); +JLoader::registerAlias('JDocumentRendererComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlComponent', '4.0'); +JLoader::registerAlias('JDocumentRendererHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlHead', '4.0'); +JLoader::registerAlias('JDocumentRendererMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlMessage', '4.0'); +JLoader::registerAlias('JDocumentRendererModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModule', '4.0'); +JLoader::registerAlias('JDocumentRendererModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModules', '4.0'); JLoader::registerAlias('JFilterInput', '\\Joomla\\CMS\\Filter\\InputFilter', '5.0'); JLoader::registerAlias('JFilterOutput', '\\Joomla\\CMS\\Filter\\OutputFilter', '5.0'); From 720134a72fc5c5f51a18ab57f222321a0b811067 Mon Sep 17 00:00:00 2001 From: Matias Aguirre Date: Wed, 31 May 2017 07:50:37 -0300 Subject: [PATCH 014/148] Change of renderers names --- libraries/classmap.php | 28 +++++++++---------- ...{RendererFeedAtom.php => AtomRenderer.php} | 4 +-- .../{RendererFeedRss.php => RssRenderer.php} | 4 +-- ...tmlComponent.php => ComponentRenderer.php} | 2 +- ...{RendererHtmlHead.php => HeadRenderer.php} | 2 +- ...rerHtmlMessage.php => MessageRenderer.php} | 2 +- ...dererHtmlModule.php => ModuleRenderer.php} | 2 +- ...rerHtmlModules.php => ModulesRenderer.php} | 2 +- 8 files changed, 23 insertions(+), 23 deletions(-) rename libraries/src/Joomla/CMS/Document/Renderer/Feed/{RendererFeedAtom.php => AtomRenderer.php} (98%) rename libraries/src/Joomla/CMS/Document/Renderer/Feed/{RendererFeedRss.php => RssRenderer.php} (98%) rename libraries/src/Joomla/CMS/Document/Renderer/Html/{RendererHtmlComponent.php => ComponentRenderer.php} (94%) rename libraries/src/Joomla/CMS/Document/Renderer/Html/{RendererHtmlHead.php => HeadRenderer.php} (99%) rename libraries/src/Joomla/CMS/Document/Renderer/Html/{RendererHtmlMessage.php => MessageRenderer.php} (97%) rename libraries/src/Joomla/CMS/Document/Renderer/Html/{RendererHtmlModule.php => ModuleRenderer.php} (98%) rename libraries/src/Joomla/CMS/Document/Renderer/Html/{RendererHtmlModules.php => ModulesRenderer.php} (97%) diff --git a/libraries/classmap.php b/libraries/classmap.php index 310eba353acb3..6d54a0074b435 100644 --- a/libraries/classmap.php +++ b/libraries/classmap.php @@ -184,21 +184,21 @@ JLoader::registerAlias('JDocumentOpensearch', '\\Joomla\\CMS\\Document\\DocumentOpensearch', '5.0'); JLoader::registerAlias('JDocumentRaw', '\\Joomla\\CMS\\Document\\DocumentRaw', '5.0'); JLoader::registerAlias('JDocumentRenderer', '\\Joomla\\CMS\\Document\\DocumentRenderer', '5.0'); -JLoader::registerAlias('JDocumentRendererFeedAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedAtom', '5.0'); -JLoader::registerAlias('JDocumentRendererFeedRss', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedRss', '5.0'); -JLoader::registerAlias('JDocumentRendererHtmlComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlComponent', '5.0'); -JLoader::registerAlias('JDocumentRendererHtmlHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlHead', '5.0'); -JLoader::registerAlias('JDocumentRendererHtmlMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlMessage', '5.0'); -JLoader::registerAlias('JDocumentRendererHtmlModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModule', '5.0'); -JLoader::registerAlias('JDocumentRendererHtmlModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModules', '5.0'); +JLoader::registerAlias('JDocumentRendererFeedAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\AtomRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererFeedRss', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RssRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ComponentRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\HeadRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\MessageRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModuleRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererHtmlModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModulesRenderer', '5.0'); JLoader::registerAlias('JDocumentXml', '\\Joomla\\CMS\\Document\\DocumentXml', '5.0'); -JLoader::registerAlias('JDocumentRendererAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedAtom', '4.0'); -JLoader::registerAlias('JDocumentRendererRSS', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RendererFeedRss', '4.0'); -JLoader::registerAlias('JDocumentRendererComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlComponent', '4.0'); -JLoader::registerAlias('JDocumentRendererHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlHead', '4.0'); -JLoader::registerAlias('JDocumentRendererMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlMessage', '4.0'); -JLoader::registerAlias('JDocumentRendererModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModule', '4.0'); -JLoader::registerAlias('JDocumentRendererModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\RendererHtmlModules', '4.0'); +JLoader::registerAlias('JDocumentRendererAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\AtomRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererRSS', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RssRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ComponentRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\HeadRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\MessageRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModuleRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModulesRenderer', '5.0'); JLoader::registerAlias('JFilterInput', '\\Joomla\\CMS\\Filter\\InputFilter', '5.0'); JLoader::registerAlias('JFilterOutput', '\\Joomla\\CMS\\Filter\\OutputFilter', '5.0'); diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedAtom.php b/libraries/src/Joomla/CMS/Document/Renderer/Feed/AtomRenderer.php similarity index 98% rename from libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedAtom.php rename to libraries/src/Joomla/CMS/Document/Renderer/Feed/AtomRenderer.php index 00f8b6976b0bd..d94eb401c8caf 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedAtom.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Feed/AtomRenderer.php @@ -14,7 +14,7 @@ use Joomla\CMS\Uri\Uri; /** - * RendererFeedAtom is a feed that implements the atom specification + * AtomRenderer is a feed that implements the atom specification * * Please note that just by using this class you won't automatically * produce valid atom files. For example, you have to specify either an editor @@ -25,7 +25,7 @@ * * @property-read DocumentFeed $_doc Reference to the Document object that instantiated the renderer */ -class RendererFeedAtom extends DocumentRenderer +class AtomRenderer extends DocumentRenderer { /** * Document mime type diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedRss.php b/libraries/src/Joomla/CMS/Document/Renderer/Feed/RssRenderer.php similarity index 98% rename from libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedRss.php rename to libraries/src/Joomla/CMS/Document/Renderer/Feed/RssRenderer.php index 0a774e6f7806c..513af91778799 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Feed/RendererFeedRss.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Feed/RssRenderer.php @@ -14,14 +14,14 @@ use Joomla\CMS\Uri\Uri; /** - * RendererFeedRss is a feed that implements RSS 2.0 Specification + * RssRenderer is a feed that implements RSS 2.0 Specification * * @link http://www.rssboard.org/rss-specification * @since 3.5 * * @property-read DocumentFeed $_doc Reference to the Document object that instantiated the renderer */ -class RendererFeedRss extends DocumentRenderer +class RssRenderer extends DocumentRenderer { /** * Renderer mime type diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlComponent.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/ComponentRenderer.php similarity index 94% rename from libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlComponent.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/ComponentRenderer.php index 882fac484e48b..7a32914b268a3 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlComponent.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/ComponentRenderer.php @@ -17,7 +17,7 @@ * * @since 3.5 */ -class RendererHtmlComponent extends DocumentRenderer +class ComponentRenderer extends DocumentRenderer { /** * Renders a component script and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlHead.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/HeadRenderer.php similarity index 99% rename from libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlHead.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/HeadRenderer.php index 8bfdd3584daf8..d91ed5dfc5979 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlHead.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/HeadRenderer.php @@ -20,7 +20,7 @@ * * @since 3.5 */ -class RendererHtmlHead extends DocumentRenderer +class HeadRenderer extends DocumentRenderer { /** * Renders the document head and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlMessage.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/MessageRenderer.php similarity index 97% rename from libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlMessage.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/MessageRenderer.php index 27c67f42c00ce..1a6ee5dc61c3d 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlMessage.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/MessageRenderer.php @@ -19,7 +19,7 @@ * * @since 3.5 */ -class RendererHtmlMessage extends DocumentRenderer +class MessageRenderer extends DocumentRenderer { /** * Renders the error stack and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModule.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/ModuleRenderer.php similarity index 98% rename from libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModule.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/ModuleRenderer.php index cc4cab4a8f009..153a541632913 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModule.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/ModuleRenderer.php @@ -21,7 +21,7 @@ * * @since 3.5 */ -class RendererHtmlModule extends DocumentRenderer +class ModuleRenderer extends DocumentRenderer { /** * Renders a module script and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModules.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/ModulesRenderer.php similarity index 97% rename from libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModules.php rename to libraries/src/Joomla/CMS/Document/Renderer/Html/ModulesRenderer.php index f3a8a40626fe6..7356e9ce4ff24 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/RendererHtmlModules.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/ModulesRenderer.php @@ -19,7 +19,7 @@ * * @since 3.5 */ -class RendererHtmlModules extends DocumentRenderer +class ModulesRenderer extends DocumentRenderer { /** * Renders multiple modules script and returns the results as a string From ba54a4986766a191edace8fa50608b712c891593 Mon Sep 17 00:00:00 2001 From: Matias Aguirre Date: Wed, 31 May 2017 15:00:29 -0300 Subject: [PATCH 015/148] Change document name formats --- libraries/classmap.php | 18 ++++++------- .../src/Joomla/CMS/Document/Document.php | 2 +- .../{DocumentError.php => ErrorDocument.php} | 4 +-- .../{DocumentFeed.php => FeedDocument.php} | 6 ++--- .../{DocumentHtml.php => HtmlDocument.php} | 26 +++++++++---------- .../{DocumentImage.php => ImageDocument.php} | 4 +-- .../{DocumentJson.php => JsonDocument.php} | 6 ++--- ...tOpensearch.php => OpensearchDocument.php} | 8 +++--- .../{DocumentRaw.php => RawDocument.php} | 4 +-- .../Document/Renderer/Feed/AtomRenderer.php | 6 ++--- .../Document/Renderer/Feed/RssRenderer.php | 6 ++--- .../Renderer/Html/ComponentRenderer.php | 4 +-- .../Document/Renderer/Html/HeadRenderer.php | 4 +-- .../Renderer/Html/MessageRenderer.php | 4 +-- .../Document/Renderer/Html/ModuleRenderer.php | 4 +-- .../Renderer/Html/ModulesRenderer.php | 4 +-- ...umentRenderer.php => RendererDocument.php} | 2 +- .../{DocumentXml.php => XmlDocument.php} | 6 ++--- 18 files changed, 59 insertions(+), 59 deletions(-) rename libraries/src/Joomla/CMS/Document/{DocumentError.php => ErrorDocument.php} (97%) rename libraries/src/Joomla/CMS/Document/{DocumentFeed.php => FeedDocument.php} (97%) rename libraries/src/Joomla/CMS/Document/{DocumentHtml.php => HtmlDocument.php} (95%) rename libraries/src/Joomla/CMS/Document/{DocumentImage.php => ImageDocument.php} (93%) rename libraries/src/Joomla/CMS/Document/{DocumentJson.php => JsonDocument.php} (92%) rename libraries/src/Joomla/CMS/Document/{DocumentOpensearch.php => OpensearchDocument.php} (96%) rename libraries/src/Joomla/CMS/Document/{DocumentRaw.php => RawDocument.php} (91%) rename libraries/src/Joomla/CMS/Document/{DocumentRenderer.php => RendererDocument.php} (98%) rename libraries/src/Joomla/CMS/Document/{DocumentXml.php => XmlDocument.php} (90%) diff --git a/libraries/classmap.php b/libraries/classmap.php index 6d54a0074b435..2a52d2b1c4cdf 100644 --- a/libraries/classmap.php +++ b/libraries/classmap.php @@ -176,14 +176,15 @@ JLoader::registerAlias('JAssociationExtensionHelper', '\\Joomla\\CMS\\Association\\AssociationExtensionHelper', '5.0'); JLoader::registerAlias('JDocument', '\\Joomla\\CMS\\Document\\Document', '5.0'); -JLoader::registerAlias('JDocumentError', '\\Joomla\\CMS\\Document\\DocumentError', '5.0'); -JLoader::registerAlias('JDocumentFeed', '\\Joomla\\CMS\\Document\\DocumentFeed', '5.0'); -JLoader::registerAlias('JDocumentHtml', '\\Joomla\\CMS\\Document\\DocumentHtml', '5.0'); -JLoader::registerAlias('JDocumentImage', '\\Joomla\\CMS\\Document\\DocumentImage', '5.0'); -JLoader::registerAlias('JDocumentJson', '\\Joomla\\CMS\\Document\\DocumentJson', '5.0'); -JLoader::registerAlias('JDocumentOpensearch', '\\Joomla\\CMS\\Document\\DocumentOpensearch', '5.0'); -JLoader::registerAlias('JDocumentRaw', '\\Joomla\\CMS\\Document\\DocumentRaw', '5.0'); -JLoader::registerAlias('JDocumentRenderer', '\\Joomla\\CMS\\Document\\DocumentRenderer', '5.0'); +JLoader::registerAlias('JDocumentError', '\\Joomla\\CMS\\Document\\ErrorDocument', '5.0'); +JLoader::registerAlias('JDocumentFeed', '\\Joomla\\CMS\\Document\\FeedDocument', '5.0'); +JLoader::registerAlias('JDocumentHtml', '\\Joomla\\CMS\\Document\\HtmlDocument', '5.0'); +JLoader::registerAlias('JDocumentImage', '\\Joomla\\CMS\\Document\\ImageDocument', '5.0'); +JLoader::registerAlias('JDocumentJson', '\\Joomla\\CMS\\Document\\JsonDocument', '5.0'); +JLoader::registerAlias('JDocumentOpensearch', '\\Joomla\\CMS\\Document\\OpensearchDocument', '5.0'); +JLoader::registerAlias('JDocumentRaw', '\\Joomla\\CMS\\Document\\RawDocument', '5.0'); +JLoader::registerAlias('JDocumentRenderer', '\\Joomla\\CMS\\Document\\RendererDocument', '5.0'); +JLoader::registerAlias('JDocumentXml', '\\Joomla\\CMS\\Document\\XmlDocument', '5.0'); JLoader::registerAlias('JDocumentRendererFeedAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\AtomRenderer', '5.0'); JLoader::registerAlias('JDocumentRendererFeedRss', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RssRenderer', '5.0'); JLoader::registerAlias('JDocumentRendererHtmlComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ComponentRenderer', '5.0'); @@ -191,7 +192,6 @@ JLoader::registerAlias('JDocumentRendererHtmlMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\MessageRenderer', '5.0'); JLoader::registerAlias('JDocumentRendererHtmlModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModuleRenderer', '5.0'); JLoader::registerAlias('JDocumentRendererHtmlModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModulesRenderer', '5.0'); -JLoader::registerAlias('JDocumentXml', '\\Joomla\\CMS\\Document\\DocumentXml', '5.0'); JLoader::registerAlias('JDocumentRendererAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\AtomRenderer', '5.0'); JLoader::registerAlias('JDocumentRendererRSS', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RssRenderer', '5.0'); JLoader::registerAlias('JDocumentRendererComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ComponentRenderer', '5.0'); diff --git a/libraries/src/Joomla/CMS/Document/Document.php b/libraries/src/Joomla/CMS/Document/Document.php index 8aa6c32a634d6..de51cb9be78b5 100644 --- a/libraries/src/Joomla/CMS/Document/Document.php +++ b/libraries/src/Joomla/CMS/Document/Document.php @@ -286,7 +286,7 @@ public static function getInstance($type = 'html', $attributes = array()) $ntype = null; // Determine the path and class - $class = __NAMESPACE__ . '\\Document' . ucfirst($type); + $class = __NAMESPACE__ . '\\' . ucfirst($type) . 'Document'; if (!class_exists($class)) { diff --git a/libraries/src/Joomla/CMS/Document/DocumentError.php b/libraries/src/Joomla/CMS/Document/ErrorDocument.php similarity index 97% rename from libraries/src/Joomla/CMS/Document/DocumentError.php rename to libraries/src/Joomla/CMS/Document/ErrorDocument.php index 2949e2dfa13d0..081b332f54663 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentError.php +++ b/libraries/src/Joomla/CMS/Document/ErrorDocument.php @@ -15,11 +15,11 @@ use Joomla\CMS\Layout\LayoutHelper; /** - * DocumentError class, provides an easy interface to parse and display an error page + * ErrorDocument class, provides an easy interface to parse and display an error page * * @since 11.1 */ -class DocumentError extends Document +class ErrorDocument extends Document { /** * Document base URL diff --git a/libraries/src/Joomla/CMS/Document/DocumentFeed.php b/libraries/src/Joomla/CMS/Document/FeedDocument.php similarity index 97% rename from libraries/src/Joomla/CMS/Document/DocumentFeed.php rename to libraries/src/Joomla/CMS/Document/FeedDocument.php index 897f912dd3156..c62029c37d201 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentFeed.php +++ b/libraries/src/Joomla/CMS/Document/FeedDocument.php @@ -14,11 +14,11 @@ use Joomla\CMS\Document\DocumentRenderer; /** - * DocumentFeed class, provides an easy interface to parse and display any feed document + * FeedDocument class, provides an easy interface to parse and display any feed document * * @since 11.1 */ -class DocumentFeed extends Document +class FeedDocument extends Document { /** * Syndication URL feed element @@ -232,7 +232,7 @@ public function render($cache = false, $params = array()) * * @param FeedItem $item The feeditem to add to the feed. * - * @return DocumentFeed instance of $this to allow chaining + * @return FeedDocument instance of $this to allow chaining * * @since 11.1 */ diff --git a/libraries/src/Joomla/CMS/Document/DocumentHtml.php b/libraries/src/Joomla/CMS/Document/HtmlDocument.php similarity index 95% rename from libraries/src/Joomla/CMS/Document/DocumentHtml.php rename to libraries/src/Joomla/CMS/Document/HtmlDocument.php index 1f2bd44f60db3..6657a13aa7343 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentHtml.php +++ b/libraries/src/Joomla/CMS/Document/HtmlDocument.php @@ -20,11 +20,11 @@ jimport('joomla.utilities.utility'); /** - * DocumentHtml class, provides an easy interface to parse and display a HTML document + * HtmlDocument class, provides an easy interface to parse and display a HTML document * * @since 11.1 */ -class DocumentHtml extends Document +class HtmlDocument extends Document { /** * Array of Header `` tags @@ -156,7 +156,7 @@ public function getHeadData() * * @param mixed $types type or types of the heads elements to reset * - * @return DocumentHtml instance of $this to allow chaining + * @return HtmlDocument instance of $this to allow chaining * * @since 3.7.0 */ @@ -229,7 +229,7 @@ private function resetHeadDatum($type) * * @param array $data The document head data in array form * - * @return DocumentHtml|null instance of $this to allow chaining or null for empty input data + * @return HtmlDocument|null instance of $this to allow chaining or null for empty input data * * @since 11.1 */ @@ -267,7 +267,7 @@ public function setHeadData($data) * * @param array $data The document head data in array form * - * @return DocumentHtml|null instance of $this to allow chaining or null for empty input data + * @return HtmlDocument|null instance of $this to allow chaining or null for empty input data * * @since 11.1 */ @@ -351,7 +351,7 @@ public function mergeHeadData($data) * @param string $relType Relation type attribute. Either rel or rev (default: 'rel'). * @param array $attribs Associative array of remaining attributes. * - * @return DocumentHtml instance of $this to allow chaining + * @return HtmlDocument instance of $this to allow chaining * * @since 11.1 */ @@ -375,7 +375,7 @@ public function addHeadLink($href, $relation, $relType = 'rel', $attribs = array * @param string $type File type * @param string $relation Relation of link * - * @return DocumentHtml instance of $this to allow chaining + * @return HtmlDocument instance of $this to allow chaining * * @since 11.1 */ @@ -392,7 +392,7 @@ public function addFavicon($href, $type = 'image/vnd.microsoft.icon', $relation * * @param string $html The HTML to add to the head * - * @return DocumentHtml instance of $this to allow chaining + * @return HtmlDocument instance of $this to allow chaining * * @since 11.1 */ @@ -501,7 +501,7 @@ public function getBuffer($type = null, $name = null, $attribs = array()) * @param string $content The content to be set in the buffer. * @param array $options Array of optional elements. * - * @return DocumentHtml instance of $this to allow chaining + * @return HtmlDocument instance of $this to allow chaining * * @since 11.1 */ @@ -527,7 +527,7 @@ public function setBuffer($content, $options = array()) * * @param array $params Parameters for fetching the template * - * @return DocumentHtml instance of $this to allow chaining + * @return HtmlDocument instance of $this to allow chaining * * @since 11.1 */ @@ -584,7 +584,7 @@ public function countModules($condition) return $result; } - Log::add('Using an expression in DocumentHtml::countModules() is deprecated.', Log::WARNING, 'deprecated'); + Log::add('Using an expression in HtmlDocument::countModules() is deprecated.', Log::WARNING, 'deprecated'); for ($i = 0, $n = count($words); $i < $n; $i += 2) { @@ -683,7 +683,7 @@ protected function _loadTemplate($directory, $filename) * * @param array $params Parameters to determine the template * - * @return DocumentHtml instance of $this to allow chaining + * @return HtmlDocument instance of $this to allow chaining * * @since 11.1 */ @@ -726,7 +726,7 @@ protected function _fetchTemplate($params = array()) /** * Parse a document template * - * @return DocumentHtml instance of $this to allow chaining + * @return HtmlDocument instance of $this to allow chaining * * @since 11.1 */ diff --git a/libraries/src/Joomla/CMS/Document/DocumentImage.php b/libraries/src/Joomla/CMS/Document/ImageDocument.php similarity index 93% rename from libraries/src/Joomla/CMS/Document/DocumentImage.php rename to libraries/src/Joomla/CMS/Document/ImageDocument.php index aa3121083de3c..1c32e629160e2 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentImage.php +++ b/libraries/src/Joomla/CMS/Document/ImageDocument.php @@ -13,11 +13,11 @@ use Joomla\CMS\Document\Document; /** - * DocumentImage class, provides an easy interface to output image data + * ImageDocument class, provides an easy interface to output image data * * @since 12.1 */ -class DocumentImage extends Document +class ImageDocument extends Document { /** * Class constructor diff --git a/libraries/src/Joomla/CMS/Document/DocumentJson.php b/libraries/src/Joomla/CMS/Document/JsonDocument.php similarity index 92% rename from libraries/src/Joomla/CMS/Document/DocumentJson.php rename to libraries/src/Joomla/CMS/Document/JsonDocument.php index 629c9235e6c7b..f40c5a00a0e89 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentJson.php +++ b/libraries/src/Joomla/CMS/Document/JsonDocument.php @@ -13,12 +13,12 @@ use Joomla\CMS\Document\Document; /** - * DocumentJson class, provides an easy interface to parse and display JSON output + * JsonDocument class, provides an easy interface to parse and display JSON output * * @link http://www.json.org/ * @since 11.1 */ -class DocumentJson extends Document +class JsonDocument extends Document { /** * Document name @@ -100,7 +100,7 @@ public function getName() * * @param string $name Document name * - * @return DocumentJson instance of $this to allow chaining + * @return JsonDocument instance of $this to allow chaining * * @since 11.1 */ diff --git a/libraries/src/Joomla/CMS/Document/DocumentOpensearch.php b/libraries/src/Joomla/CMS/Document/OpensearchDocument.php similarity index 96% rename from libraries/src/Joomla/CMS/Document/DocumentOpensearch.php rename to libraries/src/Joomla/CMS/Document/OpensearchDocument.php index d3a7bfa7e6a78..8193008957db1 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentOpensearch.php +++ b/libraries/src/Joomla/CMS/Document/OpensearchDocument.php @@ -19,7 +19,7 @@ * @link http://www.opensearch.org/ * @since 11.1 */ -class DocumentOpensearch extends Document +class OpensearchDocument extends Document { /** * ShortName element @@ -185,7 +185,7 @@ public function render($cache = false, $params = array()) * * @param string $name The name. * - * @return JDocumentOpensearch instance of $this to allow chaining + * @return OpensearchDocument instance of $this to allow chaining * * @since 11.1 */ @@ -201,7 +201,7 @@ public function setShortName($name) * * @param OpenSearchUrl $url The url to add to the description. * - * @return JDocumentOpensearch instance of $this to allow chaining + * @return OpensearchDocument instance of $this to allow chaining * * @since 11.1 */ @@ -217,7 +217,7 @@ public function addUrl(OpenSearchUrl $url) * * @param OpenSearchImage $image The image to add to the description. * - * @return JDocumentOpensearch instance of $this to allow chaining + * @return OpensearchDocument instance of $this to allow chaining * * @since 11.1 */ diff --git a/libraries/src/Joomla/CMS/Document/DocumentRaw.php b/libraries/src/Joomla/CMS/Document/RawDocument.php similarity index 91% rename from libraries/src/Joomla/CMS/Document/DocumentRaw.php rename to libraries/src/Joomla/CMS/Document/RawDocument.php index e6a52d21c11a1..fadde6929e47b 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentRaw.php +++ b/libraries/src/Joomla/CMS/Document/RawDocument.php @@ -13,11 +13,11 @@ use Joomla\CMS\Document\Document; /** - * DocumentRaw class, provides an easy interface to parse and display raw output + * RawDocument class, provides an easy interface to parse and display raw output * * @since 11.1 */ -class DocumentRaw extends Document +class RawDocument extends Document { /** * Class constructor diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Feed/AtomRenderer.php b/libraries/src/Joomla/CMS/Document/Renderer/Feed/AtomRenderer.php index d94eb401c8caf..5af21b2ba7e4a 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Feed/AtomRenderer.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Feed/AtomRenderer.php @@ -10,7 +10,7 @@ defined('JPATH_PLATFORM') or die; -use Joomla\CMS\Document\DocumentRenderer; +use Joomla\CMS\Document\RendererDocument; use Joomla\CMS\Uri\Uri; /** @@ -25,7 +25,7 @@ * * @property-read DocumentFeed $_doc Reference to the Document object that instantiated the renderer */ -class AtomRenderer extends DocumentRenderer +class AtomRenderer extends RendererDocument { /** * Document mime type @@ -44,7 +44,7 @@ class AtomRenderer extends DocumentRenderer * * @return string The output of the script * - * @see DocumentRenderer::render() + * @see RendererDocument::render() * @since 3.5 */ public function render($name = '', $params = null, $content = null) diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Feed/RssRenderer.php b/libraries/src/Joomla/CMS/Document/Renderer/Feed/RssRenderer.php index 513af91778799..e2d31d6a581ec 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Feed/RssRenderer.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Feed/RssRenderer.php @@ -10,7 +10,7 @@ defined('JPATH_PLATFORM') or die; -use Joomla\CMS\Document\DocumentRenderer; +use Joomla\CMS\Document\RendererDocument; use Joomla\CMS\Uri\Uri; /** @@ -21,7 +21,7 @@ * * @property-read DocumentFeed $_doc Reference to the Document object that instantiated the renderer */ -class RssRenderer extends DocumentRenderer +class RssRenderer extends RendererDocument { /** * Renderer mime type @@ -40,7 +40,7 @@ class RssRenderer extends DocumentRenderer * * @return string The output of the script * - * @see DocumentRenderer::render() + * @see RendererDocument::render() * @since 3.5 */ public function render($name = '', $params = null, $content = null) diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/ComponentRenderer.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/ComponentRenderer.php index 7a32914b268a3..41ce0acaaefe5 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/ComponentRenderer.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/ComponentRenderer.php @@ -10,14 +10,14 @@ defined('JPATH_PLATFORM') or die; -use Joomla\CMS\Document\DocumentRenderer; +use Joomla\CMS\Document\RendererDocument; /** * Document Html Component Renderer * * @since 3.5 */ -class ComponentRenderer extends DocumentRenderer +class ComponentRenderer extends RendererDocument { /** * Renders a component script and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/HeadRenderer.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/HeadRenderer.php index d91ed5dfc5979..5fd7a01c0fb61 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/HeadRenderer.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/HeadRenderer.php @@ -10,7 +10,7 @@ defined('JPATH_PLATFORM') or die; -use Joomla\CMS\Document\DocumentRenderer; +use Joomla\CMS\Document\RendererDocument; use Joomla\CMS\Helper\TagsHelper; use Joomla\CMS\Uri\Uri; use Joomla\Utilities\ArrayHelper; @@ -20,7 +20,7 @@ * * @since 3.5 */ -class HeadRenderer extends DocumentRenderer +class HeadRenderer extends RendererDocument { /** * Renders the document head and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/MessageRenderer.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/MessageRenderer.php index 1a6ee5dc61c3d..3c93ec57b07e9 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/MessageRenderer.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/MessageRenderer.php @@ -10,7 +10,7 @@ defined('JPATH_PLATFORM') or die; -use Joomla\CMS\Document\DocumentRenderer; +use Joomla\CMS\Document\RendererDocument; use Joomla\CMS\Log\Log; use Joomla\CMS\Layout\LayoutHelper; @@ -19,7 +19,7 @@ * * @since 3.5 */ -class MessageRenderer extends DocumentRenderer +class MessageRenderer extends RendererDocument { /** * Renders the error stack and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/ModuleRenderer.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/ModuleRenderer.php index 153a541632913..b1a398d52b8b6 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/ModuleRenderer.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/ModuleRenderer.php @@ -10,7 +10,7 @@ defined('JPATH_PLATFORM') or die; -use Joomla\CMS\Document\DocumentRenderer; +use Joomla\CMS\Document\RendererDocument; use Joomla\CMS\Helper\ModuleHelper; use Joomla\CMS\Log\Log; use Joomla\CMS\Layout\LayoutHelper; @@ -21,7 +21,7 @@ * * @since 3.5 */ -class ModuleRenderer extends DocumentRenderer +class ModuleRenderer extends RendererDocument { /** * Renders a module script and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/Renderer/Html/ModulesRenderer.php b/libraries/src/Joomla/CMS/Document/Renderer/Html/ModulesRenderer.php index 7356e9ce4ff24..a91682cea3111 100644 --- a/libraries/src/Joomla/CMS/Document/Renderer/Html/ModulesRenderer.php +++ b/libraries/src/Joomla/CMS/Document/Renderer/Html/ModulesRenderer.php @@ -10,7 +10,7 @@ defined('JPATH_PLATFORM') or die; -use Joomla\CMS\Document\DocumentRenderer; +use Joomla\CMS\Document\RendererDocument; use Joomla\CMS\Helper\ModuleHelper; use Joomla\CMS\Layout\LayoutHelper; @@ -19,7 +19,7 @@ * * @since 3.5 */ -class ModulesRenderer extends DocumentRenderer +class ModulesRenderer extends RendererDocument { /** * Renders multiple modules script and returns the results as a string diff --git a/libraries/src/Joomla/CMS/Document/DocumentRenderer.php b/libraries/src/Joomla/CMS/Document/RendererDocument.php similarity index 98% rename from libraries/src/Joomla/CMS/Document/DocumentRenderer.php rename to libraries/src/Joomla/CMS/Document/RendererDocument.php index 2d22a140d12cb..40fd8b74a59f6 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentRenderer.php +++ b/libraries/src/Joomla/CMS/Document/RendererDocument.php @@ -18,7 +18,7 @@ * * @since 11.1 */ -class DocumentRenderer +class RendererDocument { /** * Reference to the JDocument object that instantiated the renderer diff --git a/libraries/src/Joomla/CMS/Document/DocumentXml.php b/libraries/src/Joomla/CMS/Document/XmlDocument.php similarity index 90% rename from libraries/src/Joomla/CMS/Document/DocumentXml.php rename to libraries/src/Joomla/CMS/Document/XmlDocument.php index 42c7aa4c242b0..a2014e21df785 100644 --- a/libraries/src/Joomla/CMS/Document/DocumentXml.php +++ b/libraries/src/Joomla/CMS/Document/XmlDocument.php @@ -13,11 +13,11 @@ use Joomla\CMS\Document\Document; /** - * DocumentXml class, provides an easy interface to parse and display XML output + * XmlDocument class, provides an easy interface to parse and display XML output * * @since 11.1 */ -class DocumentXml extends Document +class XmlDocument extends Document { /** * Document name @@ -81,7 +81,7 @@ public function getName() * * @param string $name Document name * - * @return JDocumentXml instance of $this to allow chaining + * @return JXmlDocument instance of $this to allow chaining * * @since 11.1 */ From 6a204803747faed230a7001d5f1150dea1d71954 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Mon, 5 Jun 2017 22:25:15 +0100 Subject: [PATCH 016/148] Fix deprecated versions --- libraries/classmap.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libraries/classmap.php b/libraries/classmap.php index 2a52d2b1c4cdf..e6871c3d6b1b5 100644 --- a/libraries/classmap.php +++ b/libraries/classmap.php @@ -192,13 +192,13 @@ JLoader::registerAlias('JDocumentRendererHtmlMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\MessageRenderer', '5.0'); JLoader::registerAlias('JDocumentRendererHtmlModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModuleRenderer', '5.0'); JLoader::registerAlias('JDocumentRendererHtmlModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModulesRenderer', '5.0'); -JLoader::registerAlias('JDocumentRendererAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\AtomRenderer', '5.0'); -JLoader::registerAlias('JDocumentRendererRSS', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RssRenderer', '5.0'); -JLoader::registerAlias('JDocumentRendererComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ComponentRenderer', '5.0'); -JLoader::registerAlias('JDocumentRendererHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\HeadRenderer', '5.0'); -JLoader::registerAlias('JDocumentRendererMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\MessageRenderer', '5.0'); -JLoader::registerAlias('JDocumentRendererModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModuleRenderer', '5.0'); -JLoader::registerAlias('JDocumentRendererModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModulesRenderer', '5.0'); +JLoader::registerAlias('JDocumentRendererAtom', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\AtomRenderer', '4.0'); +JLoader::registerAlias('JDocumentRendererRSS', '\\Joomla\\CMS\\Document\\Renderer\\Feed\\RssRenderer', '4.0'); +JLoader::registerAlias('JDocumentRendererComponent', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ComponentRenderer', '4.0'); +JLoader::registerAlias('JDocumentRendererHead', '\\Joomla\\CMS\\Document\\Renderer\\Html\\HeadRenderer', '4.0'); +JLoader::registerAlias('JDocumentRendererMessage', '\\Joomla\\CMS\\Document\\Renderer\\Html\\MessageRenderer', '4.0'); +JLoader::registerAlias('JDocumentRendererModule', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModuleRenderer', '4.0'); +JLoader::registerAlias('JDocumentRendererModules', '\\Joomla\\CMS\\Document\\Renderer\\Html\\ModulesRenderer', '4.0'); JLoader::registerAlias('JFilterInput', '\\Joomla\\CMS\\Filter\\InputFilter', '5.0'); JLoader::registerAlias('JFilterOutput', '\\Joomla\\CMS\\Filter\\OutputFilter', '5.0'); From ce0e72de18b6b5eb2c557274799f491f244cf50c Mon Sep 17 00:00:00 2001 From: George Wilson Date: Mon, 5 Jun 2017 22:27:21 +0100 Subject: [PATCH 017/148] Fix class name --- libraries/src/Joomla/CMS/Document/XmlDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/src/Joomla/CMS/Document/XmlDocument.php b/libraries/src/Joomla/CMS/Document/XmlDocument.php index a2014e21df785..4e5577934b0cd 100644 --- a/libraries/src/Joomla/CMS/Document/XmlDocument.php +++ b/libraries/src/Joomla/CMS/Document/XmlDocument.php @@ -81,7 +81,7 @@ public function getName() * * @param string $name Document name * - * @return JXmlDocument instance of $this to allow chaining + * @return XmlDocument instance of $this to allow chaining * * @since 11.1 */ From 00d8bacf260741cef8ea8bf052f2e6347da04a90 Mon Sep 17 00:00:00 2001 From: Matias Aguirre Date: Thu, 22 Jun 2017 09:51:26 -0300 Subject: [PATCH 018/148] Split Opensearch classes to files --- .../Document/Opensearch/OpensearchImage.php | 59 ++++++++++ .../CMS/Document/Opensearch/OpensearchUrl.php | 49 ++++++++ .../CMS/Document/OpensearchDocument.php | 110 +++--------------- 3 files changed, 121 insertions(+), 97 deletions(-) create mode 100644 libraries/src/Joomla/CMS/Document/Opensearch/OpensearchImage.php create mode 100644 libraries/src/Joomla/CMS/Document/Opensearch/OpensearchUrl.php diff --git a/libraries/src/Joomla/CMS/Document/Opensearch/OpensearchImage.php b/libraries/src/Joomla/CMS/Document/Opensearch/OpensearchImage.php new file mode 100644 index 0000000000000..f7af437cdba47 --- /dev/null +++ b/libraries/src/Joomla/CMS/Document/Opensearch/OpensearchImage.php @@ -0,0 +1,59 @@ +_mime = 'application/opensearchdescription+xml'; // Add the URL for self updating - $update = new OpenSearchUrl; + $update = new OpensearchUrl; $update->type = 'application/opensearchdescription+xml'; $update->rel = 'self'; $update->template = \JRoute::_(Uri::getInstance()); @@ -84,7 +86,7 @@ public function __construct($options = array()) { $path = str_replace(JPATH_BASE, '', $dir); $path = str_replace('\\', '/', $path); - $favicon = new OpenSearchImage; + $favicon = new OpensearchImage; if ($path == '') { @@ -130,11 +132,11 @@ public function render($cache = false, $params = array()) $xml->formatOutput = true; } - // The OpenSearch Namespace + // The Opensearch Namespace $osns = 'http://a9.com/-/spec/opensearch/1.1/'; // Create the root element - $elOs = $xml->createElementNs($osns, 'OpenSearchDescription'); + $elOs = $xml->createElementNs($osns, 'OpensearchDescription'); $elShortName = $xml->createElementNs($osns, 'ShortName'); $elShortName->appendChild($xml->createTextNode(htmlspecialchars($this->_shortName))); @@ -197,15 +199,15 @@ public function setShortName($name) } /** - * Adds a URL to the OpenSearch description. + * Adds a URL to the Opensearch description. * - * @param OpenSearchUrl $url The url to add to the description. + * @param OpensearchUrl $url The url to add to the description. * * @return OpensearchDocument instance of $this to allow chaining * * @since 11.1 */ - public function addUrl(OpenSearchUrl $url) + public function addUrl(OpensearchUrl $url) { $this->_urls[] = $url; @@ -213,104 +215,18 @@ public function addUrl(OpenSearchUrl $url) } /** - * Adds an image to the OpenSearch description. + * Adds an image to the Opensearch description. * - * @param OpenSearchImage $image The image to add to the description. + * @param OpensearchImage $image The image to add to the description. * * @return OpensearchDocument instance of $this to allow chaining * * @since 11.1 */ - public function addImage(OpenSearchImage $image) + public function addImage(OpensearchImage $image) { $this->_images[] = $image; return $this; } } - -/** - * OpenSearchUrl is an internal class that stores the search URLs for the OpenSearch description - * - * @since 11.1 - */ -class OpenSearchUrl -{ - /** - * Type item element - * - * required - * - * @var string - * @since 11.1 - */ - public $type = 'text/html'; - - /** - * Rel item element - * - * required - * - * @var string - * @since 11.1 - */ - public $rel = 'results'; - - /** - * Template item element. Has to contain the {searchTerms} parameter to work. - * - * required - * - * @var string - * @since 11.1 - */ - public $template; -} - -/** - * OpenSearchImage is an internal class that stores Images for the OpenSearch Description - * - * @since 11.1 - */ -class OpenSearchImage -{ - /** - * The images MIME type - * - * required - * - * @var string - * @since 11.1 - */ - public $type = ''; - - /** - * URL of the image or the image as base64 encoded value - * - * required - * - * @var string - * @since 11.1 - */ - public $data = ''; - - /** - * The image's width - * - * required - * - * @var string - * @since 11.1 - */ - public $width; - - /** - * The image's height - * - * required - * - * @var string - * @since 11.1 - */ - public $height; -} From 05b154298deb2509c694f069ce7112a07089e384 Mon Sep 17 00:00:00 2001 From: Matias Aguirre Date: Sun, 16 Jul 2017 19:06:18 -0300 Subject: [PATCH 019/148] Fix document render in legacy mode --- libraries/src/Joomla/CMS/Document/Document.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/src/Joomla/CMS/Document/Document.php b/libraries/src/Joomla/CMS/Document/Document.php index de51cb9be78b5..1ee2b66101a8b 100644 --- a/libraries/src/Joomla/CMS/Document/Document.php +++ b/libraries/src/Joomla/CMS/Document/Document.php @@ -308,7 +308,7 @@ public static function getInstance($type = 'html', $attributes = array()) else { $ntype = $type; - $class = 'DocumentRaw'; + $class = 'JDocumentRaw'; } } @@ -1189,7 +1189,7 @@ public function loadRenderer($type) if (!class_exists($class)) { // "Legacy" class name structure - $class = 'DocumentRenderer' . $type; + $class = 'JDocumentRenderer' . $type; if (!class_exists($class)) { @@ -1203,7 +1203,7 @@ public function loadRenderer($type) \JLoader::register($class, $path); - \JLog::add('Non-autoloadable DocumentRenderer subclasses are deprecated, support will be removed in 4.0.', \JLog::WARNING, 'deprecated'); + \JLog::add('Non-autoloadable JDocumentRenderer subclasses are deprecated, support will be removed in 4.0.', \JLog::WARNING, 'deprecated'); // If the class still doesn't exist after including the path, we've got issues if (!class_exists($class)) From 2bf3599f5b13fcb38ba2a32f8a152f52b58165d9 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Tue, 18 Jul 2017 15:11:33 +0200 Subject: [PATCH 020/148] Prepare 3.7.4 RC1 Release --- administrator/manifests/files/joomla.xml | 2 +- installation/language/en-GB/en-GB.ini | 6 +++--- libraries/cms/version/version.php | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/administrator/manifests/files/joomla.xml b/administrator/manifests/files/joomla.xml index 4291ae437e875..fa57d8e42ed3d 100644 --- a/administrator/manifests/files/joomla.xml +++ b/administrator/manifests/files/joomla.xml @@ -6,7 +6,7 @@ www.joomla.org (C) 2005 - 2017 Open Source Matters. All rights reserved GNU General Public License version 2 or later; see LICENSE.txt - 3.7.4-dev + 3.7.4-rc1 July 2017 FILES_JOOMLA_XML_DESCRIPTION diff --git a/installation/language/en-GB/en-GB.ini b/installation/language/en-GB/en-GB.ini index 5f77fc8c5d45e..d303a1a524455 100644 --- a/installation/language/en-GB/en-GB.ini +++ b/installation/language/en-GB/en-GB.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="Database Configuration" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL database query failed." INSTL_DATABASE_HOST_DESC="This is usually "localhost" or a name provided by your host." INSTL_DATABASE_HOST_LABEL="Host Name" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="You want to use a database host which is not localhost. For security reason, you need to verify the ownership of the used webhosting account. Please see here [docspagelink] for more information." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="In order to confirm that you are the the owner of this webhost please delete the file %s we have just created in the "installation" folder of your Joomla." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="For some reason we are not able to create the file. Please manually create a file called %s and upload it to the "installation" folder of your Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="We were not able to create the file. Please manually create a file named "%s" and upload it to the "installation" folder of your Joomla site." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="In order to confirm that you are the the owner of this website please delete the file named "%s" we have just created in the "installation" folder of your Joomla site." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="You are trying to use a database host which is not on your local server. For security reasons, you need to verify the ownership of your web hosting account. Please read the documentation for more information." INSTL_DATABASE_NAME_DESC="Some hosts allow only a certain DB name per site. Use table prefix in this case for distinct Joomla! sites." INSTL_DATABASE_NAME_LABEL="Database Name" INSTL_DATABASE_NO_SCHEMA="No database schema exists for this database type." diff --git a/libraries/cms/version/version.php b/libraries/cms/version/version.php index 5878d9dbd7d73..7751a493d92ad 100644 --- a/libraries/cms/version/version.php +++ b/libraries/cms/version/version.php @@ -38,7 +38,7 @@ final class JVersion * @var string * @since 3.5 */ - const DEV_LEVEL = '4-dev'; + const DEV_LEVEL = '4-rc1'; /** * Development status. @@ -46,7 +46,7 @@ final class JVersion * @var string * @since 3.5 */ - const DEV_STATUS = 'Development'; + const DEV_STATUS = 'Release Candidate'; /** * Build number. @@ -70,7 +70,7 @@ final class JVersion * @var string * @since 3.5 */ - const RELDATE = '11-July-2017'; + const RELDATE = '18-July-2017'; /** * Release time. @@ -78,7 +78,7 @@ final class JVersion * @var string * @since 3.5 */ - const RELTIME = '16:52'; + const RELTIME = '14:05'; /** * Release timezone. From f002c0bbc837b981a36bee7e91d974d55bb23445 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Tue, 18 Jul 2017 17:03:48 +0200 Subject: [PATCH 021/148] set dev state --- administrator/manifests/files/joomla.xml | 2 +- libraries/cms/version/version.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/administrator/manifests/files/joomla.xml b/administrator/manifests/files/joomla.xml index fa57d8e42ed3d..4291ae437e875 100644 --- a/administrator/manifests/files/joomla.xml +++ b/administrator/manifests/files/joomla.xml @@ -6,7 +6,7 @@ www.joomla.org (C) 2005 - 2017 Open Source Matters. All rights reserved GNU General Public License version 2 or later; see LICENSE.txt - 3.7.4-rc1 + 3.7.4-dev July 2017 FILES_JOOMLA_XML_DESCRIPTION diff --git a/libraries/cms/version/version.php b/libraries/cms/version/version.php index 7751a493d92ad..ea8187642a1ea 100644 --- a/libraries/cms/version/version.php +++ b/libraries/cms/version/version.php @@ -38,7 +38,7 @@ final class JVersion * @var string * @since 3.5 */ - const DEV_LEVEL = '4-rc1'; + const DEV_LEVEL = '4-dev'; /** * Development status. @@ -46,7 +46,7 @@ final class JVersion * @var string * @since 3.5 */ - const DEV_STATUS = 'Release Candidate'; + const DEV_STATUS = 'Development'; /** * Build number. @@ -78,7 +78,7 @@ final class JVersion * @var string * @since 3.5 */ - const RELTIME = '14:05'; + const RELTIME = '16:03'; /** * Release timezone. From 483f235d6a6712100f855b318fff020cd75707ed Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 19 Jul 2017 13:03:36 +0100 Subject: [PATCH 022/148] Update string in fields (#17119) It was a bit ambiguous so I updated the string to be more explicit ### Before ### After --- administrator/language/en-GB/en-GB.com_fields.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/language/en-GB/en-GB.com_fields.ini b/administrator/language/en-GB/en-GB.com_fields.ini index 9bc03ff64aeee..9f480d810e80c 100644 --- a/administrator/language/en-GB/en-GB.com_fields.ini +++ b/administrator/language/en-GB/en-GB.com_fields.ini @@ -48,7 +48,7 @@ COM_FIELDS_FIELD_SHOW_ON_LABEL="Show On" COM_FIELDS_FIELD_SHOW_ON_SITE="Site" COM_FIELDS_FIELD_TYPE_DESC="The type of the field." COM_FIELDS_FIELD_TYPE_LABEL="Type" -COM_FIELDS_FIELD_USE_GLOBAL="Use from Plugin" +COM_FIELDS_FIELD_USE_GLOBAL="Use settings from Plugin" COM_FIELDS_GROUP_PERMISSION_CREATE_DESC="New setting for create actions in this field group and the calculated setting based on the parent extension permissions." COM_FIELDS_GROUP_PERMISSION_DELETE_DESC="New setting for delete actions on this field group and the calculated setting based on the parent extension permissions." COM_FIELDS_GROUP_PERMISSION_EDITOWN_DESC="New setting for edit own actions on this field group and the calculated setting based on the parent extension permissions." From e48d9aecab626b6a3879814545862afbe96e12f0 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 19 Jul 2017 13:04:07 +0100 Subject: [PATCH 023/148] Deprecated notice (#17094) Update the deprecated notice on an unused file to indicate that it will be removed in J4 --- layouts/joomla/edit/details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/joomla/edit/details.php b/layouts/joomla/edit/details.php index 5992b268d0a2e..d1aa23660ff8a 100644 --- a/layouts/joomla/edit/details.php +++ b/layouts/joomla/edit/details.php @@ -6,7 +6,7 @@ * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * - * @deprecated 3.2 + * @deprecated 3.2 removed without replacement in 4.0 see global.php for an alternative */ defined('JPATH_BASE') or die; From 8b0f499748198ebbb36ed7946a3b1e592f42183e Mon Sep 17 00:00:00 2001 From: Frank Mayer Date: Wed, 19 Jul 2017 15:07:22 +0300 Subject: [PATCH 024/148] [Plugins/system/debug] Some improvements and cleanups in plugins/system/debug (#16674) * Some improvements and cleanups in plugins/system/debug - Make use of $this->db instead of JFactory::getDbo()(); - Added missing docblocks - Type-safety - replace unnecessary strlen() call with simple check - CS * A few more changes * A few more changes * Changes based on reviewer's comment * cs * cs * cs * cs * cs --- plugins/system/debug/debug.php | 242 ++++++++++++++++++--------------- 1 file changed, 131 insertions(+), 111 deletions(-) diff --git a/plugins/system/debug/debug.php b/plugins/system/debug/debug.php index 65ca734d3d806..3d91805f07e28 100644 --- a/plugins/system/debug/debug.php +++ b/plugins/system/debug/debug.php @@ -82,6 +82,14 @@ class PlgSystemDebug extends JPlugin */ protected $app; + /** + * Database object. + * + * @var JDatabaseDriver + * @since __DEPLOY_VERSION__ + */ + protected $db; + /** * Container for callback functions to be triggered when rendering the console. * @@ -120,6 +128,12 @@ public function __construct(&$subject, $config) $this->app = JFactory::getApplication(); } + // Get the db if not done by JPlugin. This may happen during upgrades from Joomla 2.5. + if (!$this->db) + { + $this->db = JFactory::getDbo(); + } + $this->debugLang = $this->app->get('debug_lang'); // Skip the plugin if debug is off @@ -156,13 +170,13 @@ public function __construct(&$subject, $config) // Split into an array at any character other than alphabet, numbers, _, ., or - $categories = array_filter(preg_split('/[^A-Z0-9_\.-]/i', $this->params->get('log_categories', ''))); - $mode = $this->params->get('log_category_mode', 0); + $mode = $this->params->get('log_category_mode', 0); JLog::addLogger(array('logger' => 'callback', 'callback' => array($this, 'logger')), $priority, $categories, $mode); } // Prepare disconnect handler for SQL profiling. - $db = JFactory::getDbo(); + $db = $this->db; $db->addDisconnectHandler(array($this, 'mysqlDisconnectHandler')); // Log deprecated class aliases @@ -264,7 +278,7 @@ public function onAfterRespond() $html[] = ""; $html[] = '
'; @@ -309,7 +323,7 @@ public function onAfterRespond() if ($this->params->get('language_errorfiles', 1)) { $languageErrors = JFactory::getLanguage()->getErrorFiles(); - $html[] = $this->display('language_files_in_error', $languageErrors); + $html[] = $this->display('language_files_in_error', $languageErrors); } if ($this->params->get('language_files', 1)) @@ -376,7 +390,7 @@ public static function removeDisplayCallback($name) /** * Method to check if the current user is allowed to see the debug information or not. * - * @return boolean True is access is allowed. + * @return boolean True if access is allowed. * * @since 3.0 */ @@ -621,14 +635,14 @@ protected function displayProfileInformation() $htmlMarks = array(); $totalTime = 0; - $totalMem = 0; - $marks = array(); + $totalMem = 0; + $marks = array(); foreach (JProfiler::getInstance('Application')->getMarks() as $mark) { $totalTime += $mark->time; - $totalMem += (float) $mark->memory; - $htmlMark = sprintf( + $totalMem += (float) $mark->memory; + $htmlMark = sprintf( JText::_('PLG_DEBUG_TIME') . ': %.2f ms / %.2f ms' . ' ' . JText::_('PLG_DEBUG_MEMORY') . ': %0.3f MB / %0.2f MB' . ' %s: %s', @@ -641,63 +655,63 @@ protected function displayProfileInformation() ); $marks[] = (object) array( - 'time' => $mark->time, + 'time' => $mark->time, 'memory' => $mark->memory, - 'html' => $htmlMark, - 'tip' => $mark->label + 'html' => $htmlMark, + 'tip' => $mark->label, ); } $avgTime = $totalTime / count($marks); - $avgMem = $totalMem / count($marks); + $avgMem = $totalMem / count($marks); foreach ($marks as $mark) { if ($mark->time > $avgTime * 1.5) { - $barClass = 'bar-danger'; + $barClass = 'bar-danger'; $labelClass = 'label-important label-danger'; } elseif ($mark->time < $avgTime / 1.5) { - $barClass = 'bar-success'; + $barClass = 'bar-success'; $labelClass = 'label-success'; } else { - $barClass = 'bar-warning'; + $barClass = 'bar-warning'; $labelClass = 'label-warning'; } if ($mark->memory > $avgMem * 1.5) { - $barClassMem = 'bar-danger'; + $barClassMem = 'bar-danger'; $labelClassMem = 'label-important label-danger'; } elseif ($mark->memory < $avgMem / 1.5) { - $barClassMem = 'bar-success'; + $barClassMem = 'bar-success'; $labelClassMem = 'label-success'; } else { - $barClassMem = 'bar-warning'; + $barClassMem = 'bar-warning'; $labelClassMem = 'label-warning'; } - $barClass .= " progress-$barClass"; + $barClass .= " progress-$barClass"; $barClassMem .= " progress-$barClassMem"; $bars[] = (object) array( 'width' => round($mark->time / ($totalTime / 100), 4), 'class' => $barClass, - 'tip' => $mark->tip . ' ' . round($mark->time, 2) . ' ms' + 'tip' => $mark->tip . ' ' . round($mark->time, 2) . ' ms', ); $barsMem[] = (object) array( 'width' => round((float) $mark->memory / ($totalMem / 100), 4), 'class' => $barClassMem, - 'tip' => $mark->tip . ' ' . round($mark->memory, 3) . ' MB', + 'tip' => $mark->tip . ' ' . round($mark->memory, 3) . ' MB', ); $htmlMarks[] = '
' . str_replace('label-time', $labelClass, str_replace('label-memory', $labelClassMem, $mark->html)) . '
'; @@ -710,7 +724,7 @@ protected function displayProfileInformation() $html[] = '
' . implode('', $htmlMarks) . '
'; - $db = JFactory::getDbo(); + $db = $this->db; // fix for support custom shutdown function via register_shutdown_function(). $db->disconnect(); @@ -724,7 +738,7 @@ protected function displayProfileInformation() if ($timings) { $totalQueryTime = 0.0; - $lastStart = null; + $lastStart = null; foreach ($timings as $k => $v) { @@ -796,8 +810,7 @@ protected function displayMemoryUsage() */ protected function displayQueries() { - $db = JFactory::getDbo(); - + $db = $this->db; $log = $db->getLog(); if (!$log) @@ -805,21 +818,21 @@ protected function displayQueries() return null; } - $timings = $db->getTimings(); + $timings = $db->getTimings(); $callStacks = $db->getCallStacks(); $db->setDebug(false); $selectQueryTypeTicker = array(); - $otherQueryTypeTicker = array(); + $otherQueryTypeTicker = array(); - $timing = array(); + $timing = array(); $maxtime = 0; if (isset($timings[0])) { - $startTime = $timings[0]; - $endTime = $timings[count($timings) - 1]; + $startTime = $timings[0]; + $endTime = $timings[count($timings) - 1]; $totalBargraphTime = $endTime - $startTime; if ($totalBargraphTime > 0) @@ -829,22 +842,25 @@ protected function displayQueries() if (isset($timings[$id * 2 + 1])) { // Compute the query time: $timing[$k] = array( queryTime, timeBetweenQueries ). - $timing[$id] = array(($timings[$id * 2 + 1] - $timings[$id * 2]) * 1000, $id > 0 ? ($timings[$id * 2] - $timings[$id * 2 - 1]) * 1000 : 0); - $maxtime = max($maxtime, $timing[$id]['0']); + $timing[$id] = array( + ($timings[$id * 2 + 1] - $timings[$id * 2]) * 1000, + $id > 0 ? ($timings[$id * 2] - $timings[$id * 2 - 1]) * 1000 : 0, + ); + $maxtime = max($maxtime, $timing[$id]['0']); } } } } else { - $startTime = null; + $startTime = null; $totalBargraphTime = 1; } - $bars = array(); - $info = array(); + $bars = array(); + $info = array(); $totalQueryTime = 0; - $duplicates = array(); + $duplicates = array(); foreach ($log as $id => $query) { @@ -860,11 +876,11 @@ protected function displayQueries() if ($timings && isset($timings[$id * 2 + 1])) { // Compute the query time. - $queryTime = ($timings[$id * 2 + 1] - $timings[$id * 2]) * 1000; + $queryTime = ($timings[$id * 2 + 1] - $timings[$id * 2]) * 1000; $totalQueryTime += $queryTime; // Run an EXPLAIN EXTENDED query on the SQL query if possible. - $hasWarnings = false; + $hasWarnings = false; $hasWarningsInProfile = false; if (isset($this->explains[$id])) @@ -886,31 +902,31 @@ protected function displayQueries() } // How heavy should the string length count: 0 - 1. - $ratio = 0.5; + $ratio = 0.5; $timeScore = $queryTime / ((strlen($query) + 1) * $ratio) * 200; // Determine color of bargraph depending on query speed and presence of warnings in EXPLAIN. if ($timeScore > 10) { - $barClass = 'bar-danger'; + $barClass = 'bar-danger'; $labelClass = 'label-important'; } elseif ($hasWarnings || $timeScore > 5) { - $barClass = 'bar-warning'; + $barClass = 'bar-warning'; $labelClass = 'label-warning'; } else { - $barClass = 'bar-success'; + $barClass = 'bar-success'; $labelClass = 'label-success'; } // Computes bargraph as follows: Position begin and end of the bar relatively to whole execution time. // TODO: $prevBar is not used anywhere. Remove? - $prevBar = ($id && isset($bars[$id - 1])) ? $bars[$id - 1] : 0; + $prevBar = $id && isset($bars[$id - 1]) ? $bars[$id - 1] : 0; - $barPre = round($timing[$id][1] / ($totalBargraphTime * 10), 4); + $barPre = round($timing[$id][1] / ($totalBargraphTime * 10), 4); $barWidth = round($timing[$id][0] / ($totalBargraphTime * 10), 4); $minWidth = 0.3; @@ -921,7 +937,7 @@ protected function displayQueries() if ($barPre < 0) { $minWidth += $barPre; - $barPre = 0; + $barPre = 0; } $barWidth = $minWidth; @@ -930,14 +946,14 @@ protected function displayQueries() $bars[$id] = (object) array( 'class' => $barClass, 'width' => $barWidth, - 'pre' => $barPre, - 'tip' => sprintf('%.2f ms', $queryTime) + 'pre' => $barPre, + 'tip' => sprintf('%.2f ms', $queryTime), ); $info[$id] = (object) array( - 'class' => $labelClass, - 'explain' => $explain, - 'profile' => $profile, - 'hasWarnings' => $hasWarnings + 'class' => $labelClass, + 'explain' => $explain, + 'profile' => $profile, + 'hasWarnings' => $hasWarnings, ); } } @@ -966,7 +982,7 @@ protected function displayQueries() if ($bars[1]->pre < 0) { - $minWidth += $bars[1]->pre; + $minWidth += $bars[1]->pre; $bars[1]->pre = 0; } @@ -974,12 +990,12 @@ protected function displayQueries() } $memoryUsageNow = memory_get_usage(); - $list = array(); + $list = array(); foreach ($log as $id => $query) { // Start query type ticker additions. - $fromStart = stripos($query, 'from'); + $fromStart = stripos($query, 'from'); $whereStart = stripos($query, 'where', $fromStart); if ($whereStart === false) @@ -993,7 +1009,7 @@ protected function displayQueries() } $fromString = substr($query, 0, $whereStart); - $fromString = str_replace(array("\t","\n"), ' ', $fromString); + $fromString = str_replace(array("\t", "\n"), ' ', $fromString); $fromString = trim($fromString); // Initialise the select/other query type counts the first time. @@ -1030,17 +1046,18 @@ protected function displayQueries() // Formats the output for the query time with EXPLAIN query results as tooltip: $htmlTiming = '
'; $htmlTiming .= JText::sprintf( - 'PLG_DEBUG_QUERY_TIME', - sprintf( - '%.2f ms', - $info[$id]->class, - $timing[$id]['0'] - ) - ); + 'PLG_DEBUG_QUERY_TIME', + sprintf( + '%.2f ms', + $info[$id]->class, + $timing[$id]['0'] + ) + ); if ($timing[$id]['1']) { - $htmlTiming .= ' ' . JText::sprintf('PLG_DEBUG_QUERY_AFTER_LAST', + $htmlTiming .= ' ' . JText::sprintf( + 'PLG_DEBUG_QUERY_AFTER_LAST', sprintf('%.2f ms', $timing[$id]['1']) ); } @@ -1049,7 +1066,7 @@ protected function displayQueries() if (isset($callStacks[$id][0]['memory'])) { - $memoryUsed = $callStacks[$id][0]['memory'][1] - $callStacks[$id][0]['memory'][0]; + $memoryUsed = $callStacks[$id][0]['memory'][1] - $callStacks[$id][0]['memory'][0]; $memoryBeforeQuery = $callStacks[$id][0]['memory'][0]; // Determine colour of query memory usage. @@ -1066,7 +1083,9 @@ protected function displayQueries() $labelClass = 'label-success'; } - $htmlTiming .= ' ' . '' . JText::sprintf('PLG_DEBUG_MEMORY_USED_FOR_QUERY', + $htmlTiming .= ' ' . '' + . JText::sprintf( + 'PLG_DEBUG_MEMORY_USED_FOR_QUERY', sprintf('%.3f MB', $memoryUsed / 1048576), sprintf('%.3f MB', $memoryBeforeQuery / 1048576) ) @@ -1095,7 +1114,8 @@ protected function displayQueries() } $htmlResultsReturned = '' . (int) $resultsReturned . ''; - $htmlTiming .= ' ' . JText::sprintf('PLG_DEBUG_ROWS_RETURNED_BY_QUERY', $htmlResultsReturned) . ''; + $htmlTiming .= ' ' + . JText::sprintf('PLG_DEBUG_ROWS_RETURNED_BY_QUERY', $htmlResultsReturned) . ''; } } @@ -1116,7 +1136,7 @@ protected function displayQueries() $htmlAccordions = JHtml::_( 'bootstrap.startAccordion', 'dbg_query_' . $id, array( - 'active' => $info[$id]->hasWarnings ? ('dbg_query_explain_' . $id) : '' + 'active' => $info[$id]->hasWarnings ? ('dbg_query_explain_' . $id) : '', ) ); @@ -1231,8 +1251,8 @@ protected function displayQueries() // Get the totals for the query types. $totalSelectQueryTypes = count($selectQueryTypeTicker); - $totalOtherQueryTypes = count($otherQueryTypeTicker); - $totalQueryTypes = $totalSelectQueryTypes + $totalOtherQueryTypes; + $totalOtherQueryTypes = count($otherQueryTypeTicker); + $totalQueryTypes = $totalSelectQueryTypes + $totalOtherQueryTypes; $html[] = '

' . JText::sprintf('PLG_DEBUG_QUERY_TYPES_LOGGED', $totalQueryTypes) . '

'; @@ -1309,11 +1329,11 @@ protected function renderBars(&$bars, $class = '', $id = null) if (isset($bar->tip) && $bar->tip) { $barClass .= ' hasTooltip'; - $tip = JHtml::_('tooltipText', $bar->tip, '', 0); + $tip = JHtml::_('tooltipText', $bar->tip, '', 0); } $html[] = ''; + . $bar->width . '%;" href="#dbg-' . $class . '-' . ($i + 1) . '">'; } return '
' . implode('', $html) . '
'; @@ -1347,9 +1367,9 @@ protected function tableToHtml($table, &$hasWarnings) $html[] = '' . htmlspecialchars($k) . ''; } - $html[] = ''; - $html[] = ''; - $html[] = ''; + $html[] = ''; + $html[] = ''; + $html[] = ''; $durations = array(); foreach ($table as $tr) @@ -1380,7 +1400,7 @@ protected function tableToHtml($table, &$hasWarnings) if ($td >= 0.001 && ($td == $durations[0] || (isset($durations[1]) && $td == $durations[1]))) { // Duration column with duration value of more than 1 ms and within 2 top duration in SQL engine: Highlight warning. - $html[] = ''; + $html[] = ''; $hasWarnings = true; } else @@ -1394,7 +1414,7 @@ protected function tableToHtml($table, &$hasWarnings) elseif ($k === 'Error') { // An error in the EXPLAIN query occurred, display it instead of the result (means original query had syntax error most probably). - $html[] = '' . htmlspecialchars($td); + $html[] = '' . htmlspecialchars($td); $hasWarnings = true; } elseif ($k === 'key') @@ -1402,9 +1422,9 @@ protected function tableToHtml($table, &$hasWarnings) if ($td === 'NULL') { // Displays query parts which don't use a key with warning: - $html[] = '' . '' - . JText::_('PLG_DEBUG_WARNING_NO_INDEX') . '' . ''; + $html[] = '' . '' + . JText::_('PLG_DEBUG_WARNING_NO_INDEX') . '' . ''; $hasWarnings = true; } else @@ -1421,12 +1441,12 @@ protected function tableToHtml($table, &$hasWarnings) // Displays warnings for "Using filesort": $htmlTdWithWarnings = str_replace( - 'Using filesort', - '' - . JText::_('PLG_DEBUG_WARNING_USING_FILESORT') . '', - $htmlTd - ); + 'Using filesort', + '' + . JText::_('PLG_DEBUG_WARNING_USING_FILESORT') . '', + $htmlTd + ); if ($htmlTdWithWarnings !== $htmlTd) { @@ -1503,7 +1523,7 @@ public function mysqlDisconnectHandler(&$db) } } - if (in_array($db->getServerType(), array('mysql', 'postgresql'))) + if (in_array($db->getServerType(), array('mysql', 'postgresql'), true)) { $log = $db->getLog(); @@ -1601,8 +1621,8 @@ protected function displayLanguageFilesLoaded() protected function displayUntranslatedStrings() { $stripFirst = $this->params->get('strip-first'); - $stripPref = $this->params->get('strip-prefix'); - $stripSuff = $this->params->get('strip-suffix'); + $stripPref = $this->params->get('strip-prefix'); + $stripSuff = $this->params->get('strip-suffix'); $orphans = JFactory::getLanguage()->getOrphans(); @@ -1631,7 +1651,7 @@ protected function displayUntranslatedStrings() if (($pos = strpos($info['string'], '=')) > 0) { $parts = explode('=', $info['string']); - $key = $parts[0]; + $key = $parts[0]; $guess = $parts[1]; } else @@ -1662,7 +1682,7 @@ protected function displayUntranslatedStrings() } } - $key = trim(strtoupper($key)); + $key = strtoupper(trim($key)); $key = preg_replace('#\s+#', '_', $key); $key = preg_replace('#\W#', '', $key); @@ -1702,13 +1722,13 @@ protected function highlightQuery($query) $regex = array( // Tables are identified by the prefix. - '/(=)/' => '$1', + '/(=)/' => '$1', // All uppercase words have a special meaning. - '/(?)([A-Z_]{2,})(?!\w)/x' => '$1', + '/(?)([A-Z_]{2,})(?!\w)/x' => '$1', // Tables are identified by the prefix. - '/(' . JFactory::getDbo()->getPrefix() . '[a-z_0-9]+)/' => '$1' + '/(' . $this->db->getPrefix() . '[a-z_0-9]+)/' => '$1', ); @@ -1778,13 +1798,13 @@ protected function displayLogs() { $priorities = array( JLog::EMERGENCY => 'EMERGENCY', - JLog::ALERT => 'ALERT', - JLog::CRITICAL => 'CRITICAL', - JLog::ERROR => 'ERROR', - JLog::WARNING => 'WARNING', - JLog::NOTICE => 'NOTICE', - JLog::INFO => 'INFO', - JLog::DEBUG => 'DEBUG' + JLog::ALERT => 'ALERT', + JLog::CRITICAL => 'CRITICAL', + JLog::ERROR => 'ERROR', + JLog::WARNING => 'WARNING', + JLog::NOTICE => 'NOTICE', + JLog::INFO => 'INFO', + JLog::DEBUG => 'DEBUG', ); $out = ''; @@ -1798,25 +1818,25 @@ protected function displayLogs() { $logEntriesDatabasequery = count( array_filter( - $this->logEntries, function($logEntry) + $this->logEntries, function ($logEntry) { return $logEntry->category === 'databasequery'; } ) ); - $logEntriesTotal -= $logEntriesDatabasequery; + $logEntriesTotal -= $logEntriesDatabasequery; } // Deprecated log entries $logEntriesDeprecated = count( array_filter( - $this->logEntries, function($logEntry) + $this->logEntries, function ($logEntry) { return $logEntry->category === 'deprecated'; } ) ); - $showDeprecated = $this->params->get('log-deprecated', 0); + $showDeprecated = $this->params->get('log-deprecated', 0); if (!$showDeprecated) { @@ -1837,7 +1857,7 @@ protected function displayLogs()
'; } - $out .= '
    '; + $out .= '
      '; $count = 1; foreach ($this->logEntries as $entry) @@ -1855,7 +1875,7 @@ protected function displayLogs() } // Don't show everything logs if not selected. - if (!$showEverything && !in_array($entry->category, array('deprecated', 'databasequery'))) + if (!$showEverything && !in_array($entry->category, array('deprecated', 'databasequery'), true)) { continue; } @@ -1895,7 +1915,7 @@ protected function renderCallStack(array $callStack = array()) { $htmlCallStack = ''; - if (isset($callStack)) + if ($callStack !== null) { $htmlCallStack .= '
      '; $htmlCallStack .= ''; @@ -2020,7 +2040,7 @@ protected function writeToFile() // Get the queries from log. $current = ''; - $db = JFactory::getDbo(); + $db = $this->db; $log = $db->getLog(); $timings = $db->getTimings(); @@ -2028,8 +2048,8 @@ protected function writeToFile() { if (isset($timings[$id * 2 + 1])) { - $temp = str_replace('`', '', $log[$id]); - $temp = str_replace(array("\t", "\n", "\r\n"), ' ', $temp); + $temp = str_replace('`', '', $log[$id]); + $temp = str_replace(array("\t", "\n", "\r\n"), ' ', $temp); $current .= $temp . ";\n"; } } From 85cca3ee22dd0dada30b5241ee479deaf449ede6 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 19 Jul 2017 13:08:15 +0100 Subject: [PATCH 025/148] Change vote plugin to disabled (#17106) On new installs this changes the vote plugin to be disabled by default. It is not used that often and by disabling it we also benefit from a simpler article list view in the admin --- installation/sql/mysql/joomla.sql | 2 +- installation/sql/postgresql/joomla.sql | 2 +- installation/sql/sqlazure/joomla.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/installation/sql/mysql/joomla.sql b/installation/sql/mysql/joomla.sql index cfdef05217d90..d402e930e97ff 100644 --- a/installation/sql/mysql/joomla.sql +++ b/installation/sql/mysql/joomla.sql @@ -570,7 +570,7 @@ INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `elem (406, 0, 'plg_content_loadmodule', 'plugin', 'loadmodule', 'content', 0, 1, 1, 0, '', '{"style":"xhtml"}', '', '', 0, '2011-09-18 15:22:50', 0, 0), (407, 0, 'plg_content_pagebreak', 'plugin', 'pagebreak', 'content', 0, 1, 1, 0, '', '{"title":"1","multipage_toc":"1","showall":"1"}', '', '', 0, '0000-00-00 00:00:00', 4, 0), (408, 0, 'plg_content_pagenavigation', 'plugin', 'pagenavigation', 'content', 0, 1, 1, 0, '', '{"position":"1"}', '', '', 0, '0000-00-00 00:00:00', 5, 0), -(409, 0, 'plg_content_vote', 'plugin', 'vote', 'content', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 6, 0), +(409, 0, 'plg_content_vote', 'plugin', 'vote', 'content', 0, 0, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 6, 0), (410, 0, 'plg_editors_codemirror', 'plugin', 'codemirror', 'editors', 0, 1, 1, 1, '', '{"lineNumbers":"1","lineWrapping":"1","matchTags":"1","matchBrackets":"1","marker-gutter":"1","autoCloseTags":"1","autoCloseBrackets":"1","autoFocus":"1","theme":"default","tabmode":"indent"}', '', '', 0, '0000-00-00 00:00:00', 1, 0), (411, 0, 'plg_editors_none', 'plugin', 'none', 'editors', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 2, 0), (412, 0, 'plg_editors_tinymce', 'plugin', 'tinymce', 'editors', 0, 1, 1, 0, '', '{"configuration":{"toolbars":{"2":{"toolbar1":["bold","underline","strikethrough","|","undo","redo","|","bullist","numlist","|","pastetext"]},"1":{"menu":["edit","insert","view","format","table","tools"],"toolbar1":["bold","italic","underline","strikethrough","|","alignleft","aligncenter","alignright","alignjustify","|","formatselect","|","bullist","numlist","|","outdent","indent","|","undo","redo","|","link","unlink","anchor","code","|","hr","table","|","subscript","superscript","|","charmap","pastetext","preview"]},"0":{"menu":["edit","insert","view","format","table","tools"],"toolbar1":["bold","italic","underline","strikethrough","|","alignleft","aligncenter","alignright","alignjustify","|","styleselect","|","formatselect","fontselect","fontsizeselect","|","searchreplace","|","bullist","numlist","|","outdent","indent","|","undo","redo","|","link","unlink","anchor","image","|","code","|","forecolor","backcolor","|","fullscreen","|","table","|","subscript","superscript","|","charmap","emoticons","media","hr","ltr","rtl","|","cut","copy","paste","pastetext","|","visualchars","visualblocks","nonbreaking","blockquote","template","|","print","preview","codesample","insertdatetime","removeformat"]}},"setoptions":{"2":{"access":["1"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"0","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""},"1":{"access":["6","2"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"0","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""},"0":{"access":["7","4","8"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"1","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""}}},"sets_amount":3,"html_height":"550","html_width":"750"}', '', '', 0, '0000-00-00 00:00:00', 3, 0), diff --git a/installation/sql/postgresql/joomla.sql b/installation/sql/postgresql/joomla.sql index a397318f782a8..857308069a918 100644 --- a/installation/sql/postgresql/joomla.sql +++ b/installation/sql/postgresql/joomla.sql @@ -583,7 +583,7 @@ INSERT INTO "#__extensions" ("extension_id", "package_id", "name", "type", "elem (406, 0, 'plg_content_loadmodule', 'plugin', 'loadmodule', 'content', 0, 1, 1, 0, '', '{"style":"xhtml"}', '', '', 0, '2011-09-18 15:22:50', 0, 0), (407, 0, 'plg_content_pagebreak', 'plugin', 'pagebreak', 'content', 0, 1, 1, 0, '', '{"title":"1","multipage_toc":"1","showall":"1"}', '', '', 0, '1970-01-01 00:00:00', 4, 0), (408, 0, 'plg_content_pagenavigation', 'plugin', 'pagenavigation', 'content', 0, 1, 1, 0, '', '{"position":"1"}', '', '', 0, '1970-01-01 00:00:00', 5, 0), -(409, 0, 'plg_content_vote', 'plugin', 'vote', 'content', 0, 1, 1, 0, '', '', '', '', 0, '1970-01-01 00:00:00', 6, 0), +(409, 0, 'plg_content_vote', 'plugin', 'vote', 'content', 0, 0, 1, 0, '', '', '', '', 0, '1970-01-01 00:00:00', 6, 0), (410, 0, 'plg_editors_codemirror', 'plugin', 'codemirror', 'editors', 0, 1, 1, 1, '', '{"lineNumbers":"1","lineWrapping":"1","matchTags":"1","matchBrackets":"1","marker-gutter":"1","autoCloseTags":"1","autoCloseBrackets":"1","autoFocus":"1","theme":"default","tabmode":"indent"}', '', '', 0, '1970-01-01 00:00:00', 1, 0), (411, 0, 'plg_editors_none', 'plugin', 'none', 'editors', 0, 1, 1, 1, '', '', '', '', 0, '1970-01-01 00:00:00', 2, 0), (412, 0, 'plg_editors_tinymce', 'plugin', 'tinymce', 'editors', 0, 1, 1, 0, '', '{"configuration":{"toolbars":{"2":{"toolbar1":["bold","underline","strikethrough","|","undo","redo","|","bullist","numlist","|","pastetext"]},"1":{"menu":["edit","insert","view","format","table","tools"],"toolbar1":["bold","italic","underline","strikethrough","|","alignleft","aligncenter","alignright","alignjustify","|","formatselect","|","bullist","numlist","|","outdent","indent","|","undo","redo","|","link","unlink","anchor","code","|","hr","table","|","subscript","superscript","|","charmap","pastetext","preview"]},"0":{"menu":["edit","insert","view","format","table","tools"],"toolbar1":["bold","italic","underline","strikethrough","|","alignleft","aligncenter","alignright","alignjustify","|","styleselect","|","formatselect","fontselect","fontsizeselect","|","searchreplace","|","bullist","numlist","|","outdent","indent","|","undo","redo","|","link","unlink","anchor","image","|","code","|","forecolor","backcolor","|","fullscreen","|","table","|","subscript","superscript","|","charmap","emoticons","media","hr","ltr","rtl","|","cut","copy","paste","pastetext","|","visualchars","visualblocks","nonbreaking","blockquote","template","|","print","preview","codesample","insertdatetime","removeformat"]}},"setoptions":{"2":{"access":["1"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"0","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""},"1":{"access":["6","2"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"0","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""},"0":{"access":["7","4","8"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"1","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""}}},"sets_amount":3,"html_height":"550","html_width":"750"}', '', '', 0, '1970-01-01 00:00:00', 3, 0), diff --git a/installation/sql/sqlazure/joomla.sql b/installation/sql/sqlazure/joomla.sql index da2836025b87c..ccfaf92d8b919 100644 --- a/installation/sql/sqlazure/joomla.sql +++ b/installation/sql/sqlazure/joomla.sql @@ -795,7 +795,7 @@ INSERT INTO "#__extensions" ("extension_id", "package_id", "name", "type", "elem (406, 0, 'plg_content_loadmodule', 'plugin', 'loadmodule', 'content', 0, 1, 1, 0, '', '{"style":"xhtml"}', '', '', 0, '1900-01-01 00:00:00', 0, 0), (407, 0, 'plg_content_pagebreak', 'plugin', 'pagebreak', 'content', 0, 1, 1, 0, '', '{"title":"1","multipage_toc":"1","showall":"1"}', '', '', 0, '1900-01-01 00:00:00', 4, 0), (408, 0, 'plg_content_pagenavigation', 'plugin', 'pagenavigation', 'content', 0, 1, 1, 0, '', '{"position":"1"}', '', '', 0, '1900-01-01 00:00:00', 5, 0), -(409, 0, 'plg_content_vote', 'plugin', 'vote', 'content', 0, 1, 1, 0, '', '', '', '', 0, '1900-01-01 00:00:00', 6, 0), +(409, 0, 'plg_content_vote', 'plugin', 'vote', 'content', 0, 0, 1, 0, '', '', '', '', 0, '1900-01-01 00:00:00', 6, 0), (410, 0, 'plg_editors_codemirror', 'plugin', 'codemirror', 'editors', 0, 1, 1, 1, '', '{"lineNumbers":"1","lineWrapping":"1","matchTags":"1","matchBrackets":"1","marker-gutter":"1","autoCloseTags":"1","autoCloseBrackets":"1","autoFocus":"1","theme":"default","tabmode":"indent"}', '', '', 0, '1900-01-01 00:00:00', 1, 0), (411, 0, 'plg_editors_none', 'plugin', 'none', 'editors', 0, 1, 1, 1, '', '', '', '', 0, '1900-01-01 00:00:00', 2, 0), (412, 0, 'plg_editors_tinymce', 'plugin', 'tinymce', 'editors', 0, 1, 1, 0, '', '{"configuration":{"toolbars":{"2":{"toolbar1":["bold","underline","strikethrough","|","undo","redo","|","bullist","numlist","|","pastetext"]},"1":{"menu":["edit","insert","view","format","table","tools"],"toolbar1":["bold","italic","underline","strikethrough","|","alignleft","aligncenter","alignright","alignjustify","|","formatselect","|","bullist","numlist","|","outdent","indent","|","undo","redo","|","link","unlink","anchor","code","|","hr","table","|","subscript","superscript","|","charmap","pastetext","preview"]},"0":{"menu":["edit","insert","view","format","table","tools"],"toolbar1":["bold","italic","underline","strikethrough","|","alignleft","aligncenter","alignright","alignjustify","|","styleselect","|","formatselect","fontselect","fontsizeselect","|","searchreplace","|","bullist","numlist","|","outdent","indent","|","undo","redo","|","link","unlink","anchor","image","|","code","|","forecolor","backcolor","|","fullscreen","|","table","|","subscript","superscript","|","charmap","emoticons","media","hr","ltr","rtl","|","cut","copy","paste","pastetext","|","visualchars","visualblocks","nonbreaking","blockquote","template","|","print","preview","codesample","insertdatetime","removeformat"]}},"setoptions":{"2":{"access":["1"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"0","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""},"1":{"access":["6","2"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"0","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""},"0":{"access":["7","4","8"],"skin":"0","skin_admin":"0","mobile":"0","drag_drop":"1","path":"","entity_encoding":"raw","lang_mode":"1","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","use_config_textfilters":"0","invalid_elements":"script,applet,iframe","valid_elements":"","extended_elements":"","resizing":"1","resize_horizontal":"1","element_path":"1","wordcount":"1","image_advtab":"1","advlist":"1","autosave":"1","contextmenu":"1","custom_plugin":"","custom_button":""}}},"sets_amount":3,"html_height":"550","html_width":"750"}', '', '', 0, '1900-01-01 00:00:00', 3, 0), From 3e77ecfdfcb585a260de0f39474e57617e8d7241 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 19 Jul 2017 13:08:54 +0100 Subject: [PATCH 026/148] Banned text strings consistency (#17108) The text used for the banned fields in com_contacts is different in the commponent options and the individual contact options. Irrelevant of if the information is needed or not we should be consistent. So on the basis that it is important to have the extra information I have updated the individual contact strings to match the global ones. --- administrator/language/en-GB/en-GB.com_contact.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/administrator/language/en-GB/en-GB.com_contact.ini b/administrator/language/en-GB/en-GB.com_contact.ini index b72ad395a0d0a..a099141281385 100644 --- a/administrator/language/en-GB/en-GB.com_contact.ini +++ b/administrator/language/en-GB/en-GB.com_contact.ini @@ -86,11 +86,11 @@ COM_CONTACT_FIELD_CREATED_BY_ALIAS_LABEL="Created By Alias" COM_CONTACT_FIELD_CREATED_BY_DESC="Select the name of the user who created the contact." COM_CONTACT_FIELD_CREATED_DESC="Date when the contact was created." COM_CONTACT_FIELD_CREATED_LABEL="Created Date" -COM_CONTACT_FIELD_EMAIL_BANNED_EMAIL_DESC="Email addresses not allowed to submit contact form." +COM_CONTACT_FIELD_EMAIL_BANNED_EMAIL_DESC="Email addresses not allowed to submit contact form. Separate multiple email addresses with a semicolon." COM_CONTACT_FIELD_EMAIL_BANNED_EMAIL_LABEL="Banned Email" -COM_CONTACT_FIELD_EMAIL_BANNED_SUBJECT_DESC="Subjects not allowed in contact form." +COM_CONTACT_FIELD_EMAIL_BANNED_SUBJECT_DESC="Subjects not allowed in contact form. Separate multiple subjects with a semicolon." COM_CONTACT_FIELD_EMAIL_BANNED_SUBJECT_LABEL="Banned Subject" -COM_CONTACT_FIELD_EMAIL_BANNED_TEXT_DESC="Text not allowed in contact form body." +COM_CONTACT_FIELD_EMAIL_BANNED_TEXT_DESC="Text not allowed in contact form body. Separate multiple words with a semicolon." COM_CONTACT_FIELD_EMAIL_BANNED_TEXT_LABEL="Banned Text" COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC="Hide or Show checkbox to allow copy of email to be sent to submitter." COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL="Send Copy to Submitter" From 919e8b0955d73979458974dcec3b946b62de9d79 Mon Sep 17 00:00:00 2001 From: Izhar Aazmi Date: Wed, 19 Jul 2017 17:40:35 +0530 Subject: [PATCH 027/148] Refactor database drivers - push up desctructor (#10962) * Push up the destructor from various database drivers to their parent abstract class JDatabaseDriver as it almost every time just does one thing viz disconnect(). Otherwise it can always be overridden. Never `unset` class property. $this->connection set to null in disconnect methods. Nosql connect return is void not bool. * Use version macro now --- libraries/joomla/database/driver.php | 10 ++++++++++ libraries/joomla/database/driver/mysql.php | 10 ---------- libraries/joomla/database/driver/mysqli.php | 10 ---------- libraries/joomla/database/driver/oracle.php | 14 ++------------ libraries/joomla/database/driver/pdo.php | 10 ---------- libraries/joomla/database/driver/postgresql.php | 10 ---------- libraries/joomla/database/driver/sqlite.php | 12 +----------- libraries/joomla/database/driver/sqlsrv.php | 10 ---------- .../joomla/database/stubs/nosqldriver.php | 2 +- 9 files changed, 14 insertions(+), 74 deletions(-) diff --git a/libraries/joomla/database/driver.php b/libraries/joomla/database/driver.php index 63d34b8843df7..fc9080e72c9f8 100644 --- a/libraries/joomla/database/driver.php +++ b/libraries/joomla/database/driver.php @@ -661,6 +661,16 @@ public function createDatabase($options, $utf = true) return $this->execute(); } + /** + * Destructor. + * + * @since __DEPLOY_VERSION__ + */ + public function __destruct() + { + $this->disconnect(); + } + /** * Disconnects the database. * diff --git a/libraries/joomla/database/driver/mysql.php b/libraries/joomla/database/driver/mysql.php index 3aaa798421605..9a385db064c40 100644 --- a/libraries/joomla/database/driver/mysql.php +++ b/libraries/joomla/database/driver/mysql.php @@ -54,16 +54,6 @@ public function __construct($options) parent::__construct($options); } - /** - * Destructor. - * - * @since 12.1 - */ - public function __destruct() - { - $this->disconnect(); - } - /** * Connects to the database if needed. * diff --git a/libraries/joomla/database/driver/mysqli.php b/libraries/joomla/database/driver/mysqli.php index 29ca98b37709e..753ff5d60d993 100644 --- a/libraries/joomla/database/driver/mysqli.php +++ b/libraries/joomla/database/driver/mysqli.php @@ -87,16 +87,6 @@ public function __construct($options) parent::__construct($options); } - /** - * Destructor. - * - * @since 12.1 - */ - public function __destruct() - { - $this->disconnect(); - } - /** * Connects to the database if needed. * diff --git a/libraries/joomla/database/driver/oracle.php b/libraries/joomla/database/driver/oracle.php index f920d36b30e24..6e9babb89060b 100644 --- a/libraries/joomla/database/driver/oracle.php +++ b/libraries/joomla/database/driver/oracle.php @@ -80,17 +80,6 @@ public function __construct($options) parent::__construct($options); } - /** - * Destructor. - * - * @since 12.1 - */ - public function __destruct() - { - $this->freeResult(); - unset($this->connection); - } - /** * Connects to the database if needed. * @@ -127,7 +116,8 @@ public function disconnect() { // Close the connection. $this->freeResult(); - unset($this->connection); + + $this->connection = null; } /** diff --git a/libraries/joomla/database/driver/pdo.php b/libraries/joomla/database/driver/pdo.php index 4dacafa9c0fde..11c585c63ce3e 100644 --- a/libraries/joomla/database/driver/pdo.php +++ b/libraries/joomla/database/driver/pdo.php @@ -95,16 +95,6 @@ public function __construct($options) parent::__construct($options); } - /** - * Destructor. - * - * @since 12.1 - */ - public function __destruct() - { - $this->disconnect(); - } - /** * Connects to the database if needed. * diff --git a/libraries/joomla/database/driver/postgresql.php b/libraries/joomla/database/driver/postgresql.php index dd55a6e0b3547..9d30a950a605b 100644 --- a/libraries/joomla/database/driver/postgresql.php +++ b/libraries/joomla/database/driver/postgresql.php @@ -90,16 +90,6 @@ public function __construct($options) parent::__construct($options); } - /** - * Database object destructor - * - * @since 12.1 - */ - public function __destruct() - { - $this->disconnect(); - } - /** * Connects to the database if needed. * diff --git a/libraries/joomla/database/driver/sqlite.php b/libraries/joomla/database/driver/sqlite.php index 6c7dba3dce0b3..6fa12fdb81ced 100644 --- a/libraries/joomla/database/driver/sqlite.php +++ b/libraries/joomla/database/driver/sqlite.php @@ -44,17 +44,6 @@ class JDatabaseDriverSqlite extends JDatabaseDriverPdo */ protected $nameQuote = '`'; - /** - * Destructor. - * - * @since 12.1 - */ - public function __destruct() - { - $this->freeResult(); - $this->connection = null; - } - /** * Connects to the database if needed. * @@ -116,6 +105,7 @@ function($init = null) public function disconnect() { $this->freeResult(); + $this->connection = null; } diff --git a/libraries/joomla/database/driver/sqlsrv.php b/libraries/joomla/database/driver/sqlsrv.php index dca0d5a08b113..f601d9e6b9a8f 100644 --- a/libraries/joomla/database/driver/sqlsrv.php +++ b/libraries/joomla/database/driver/sqlsrv.php @@ -91,16 +91,6 @@ public function __construct($options) parent::__construct($options); } - /** - * Destructor. - * - * @since 12.1 - */ - public function __destruct() - { - $this->disconnect(); - } - /** * Connects to the database if needed. * diff --git a/tests/unit/suites/libraries/joomla/database/stubs/nosqldriver.php b/tests/unit/suites/libraries/joomla/database/stubs/nosqldriver.php index 9d0029af2a13b..d53b2ed1c10ef 100644 --- a/tests/unit/suites/libraries/joomla/database/stubs/nosqldriver.php +++ b/tests/unit/suites/libraries/joomla/database/stubs/nosqldriver.php @@ -60,7 +60,7 @@ class JDatabaseDriverNosql extends JDatabaseDriver */ public function connect() { - return true; + return; } /** From 26a6239ee3b156037679111d9169799faf34c259 Mon Sep 17 00:00:00 2001 From: Artem Vasiliev Date: Wed, 19 Jul 2017 15:15:54 +0300 Subject: [PATCH 028/148] put multiple versions of the same tag (#16583) * put multiple versions of the same tag * fixed code-style errors * remove tabs * cs: Remove tabs --- libraries/joomla/document/document.php | 8 +++++++- libraries/joomla/document/renderer/html/head.php | 12 +++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/libraries/joomla/document/document.php b/libraries/joomla/document/document.php index 1e2005aba5c05..10e45ca2a16a2 100644 --- a/libraries/joomla/document/document.php +++ b/libraries/joomla/document/document.php @@ -414,7 +414,7 @@ public function getMetaData($name, $attribute = 'name') * Sets or alters a meta tag. * * @param string $name Name of the meta HTML tag - * @param string $content Value of the meta HTML tag + * @param mixed $content Value of the meta HTML tag as array or string * @param string $attribute Attribute to use in the meta HTML tag * * @return JDocument instance of $this to allow chaining @@ -423,6 +423,12 @@ public function getMetaData($name, $attribute = 'name') */ public function setMetaData($name, $content, $attribute = 'name') { + // Pop the element off the end of array if target function expects a string or this http_equiv parameter. + if (is_array($content) && (in_array($name, array('generator', 'description')) || !is_string($attribute))) + { + $content = array_pop($content); + } + // B/C old http_equiv parameter. if (!is_string($attribute)) { diff --git a/libraries/joomla/document/renderer/html/head.php b/libraries/joomla/document/renderer/html/head.php index 3d6f747b0192a..b1b36d79ea60f 100644 --- a/libraries/joomla/document/renderer/html/head.php +++ b/libraries/joomla/document/renderer/html/head.php @@ -94,7 +94,17 @@ public function fetchHead($document) } elseif ($type != 'http-equiv' && !empty($content)) { - $buffer .= $tab . '' . $lnEnd; + if (is_array($content)) + { + foreach ($content as $value) + { + $buffer .= $tab . '' . $lnEnd; + } + } + else + { + $buffer .= $tab . '' . $lnEnd; + } } } } From ac7f0d5943ee871076d9d985c9bd0116edc37a59 Mon Sep 17 00:00:00 2001 From: Frank Mayer Date: Wed, 19 Jul 2017 15:26:01 +0300 Subject: [PATCH 029/148] Work on com_finder (both admin and site) (#12254) * Case mismatch in function call * Elvis * Fix nested positive ifs * Fix static method invocation via -> * " to ' * Remove unnecessary parentheses * Merged isset() * Inline redundant value * Move disconnected code outside the foreach loop. * Fixed Docblocks * Replaced preg_replace() with str_replace() * Replaced PHP4 type-casting * Type-safe string comparisons * More type-safe comparisons * Removed unused call and variable. Also Todo'd two things for someone to check * Reverse preg_replace() replacement because there was a limit in preg and it might cause trouble... * Codesniffer * Fix integer * Changes proposed by @andrepereiradasilva and two more by me, to get function calls out of the loop or reduce calls inside the loop. * Shouldn't this be written this way? * Some extra work according to @andrepereiradasilva's notes * Some more changes from @andrepereiradasilva's comments * Some more changes from @andrepereiradasilva's comments * Reverted removal of duplicate key entries, added TODO's * Code formatting fixes * More code formatting fixes * Fix merge introduced problem. * Additional changes according to reviewer's comments * Additional changes according to reviewer's comments * Changes, according to @andrepereiradasilva's suggestions * Forgot to commit this one --- .../components/com_finder/controller.php | 2 +- .../com_finder/controllers/filter.php | 6 +- .../com_finder/controllers/indexer.json.php | 22 +++--- .../components/com_finder/helpers/finder.php | 6 +- .../com_finder/helpers/language.php | 4 +- .../com_finder/models/fields/contentmap.php | 2 +- .../components/com_finder/models/filter.php | 6 +- .../components/com_finder/models/index.php | 15 ++-- .../components/com_finder/models/maps.php | 17 ++--- .../components/com_finder/tables/filter.php | 8 +- .../com_finder/views/filter/view.html.php | 40 ++++++---- .../com_finder/views/filters/tmpl/default.php | 76 ++++++++++--------- .../com_finder/views/filters/view.html.php | 14 +++- .../com_finder/views/index/tmpl/default.php | 2 +- .../com_finder/views/index/view.html.php | 16 +++- .../com_finder/views/maps/tmpl/default.php | 4 +- .../com_finder/views/maps/view.html.php | 10 +++ .../views/statistics/tmpl/default.php | 2 +- .../com_finder/views/statistics/view.html.php | 2 + components/com_finder/helpers/html/filter.php | 14 ++-- components/com_finder/helpers/html/query.php | 2 +- components/com_finder/models/search.php | 23 +++--- components/com_finder/router.php | 2 +- .../views/search/tmpl/default_results.php | 2 +- .../com_finder/views/search/view.html.php | 65 +++++++++++++--- 25 files changed, 226 insertions(+), 136 deletions(-) diff --git a/administrator/components/com_finder/controller.php b/administrator/components/com_finder/controller.php index 9a02f2ddf331a..197ece9389b08 100644 --- a/administrator/components/com_finder/controller.php +++ b/administrator/components/com_finder/controller.php @@ -43,7 +43,7 @@ public function display($cachable = false, $urlparams = array()) $filterId = $this->input->get('filter_id', null, 'int'); // Check for edit form. - if ($view == 'filter' && $layout == 'edit' && !$this->checkEditId('com_finder.edit.filter', $filterId)) + if ($view === 'filter' && $layout === 'edit' && !$this->checkEditId('com_finder.edit.filter', $filterId)) { // Somehow the person just went to the form - we don't allow that. $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $filterId)); diff --git a/administrator/components/com_finder/controllers/filter.php b/administrator/components/com_finder/controllers/filter.php index 3a488e82d6e07..a753539ad9a36 100644 --- a/administrator/components/com_finder/controllers/filter.php +++ b/administrator/components/com_finder/controllers/filter.php @@ -70,7 +70,7 @@ public function save($key = null, $urlVar = null) $data[$key] = $recordId; // The save2copy task needs to be handled slightly differently. - if ($task == 'save2copy') + if ($task === 'save2copy') { // Check-in the original row. if ($checkin && $model->checkin($data[$key]) === false) @@ -185,8 +185,8 @@ public function save($key = null, $urlVar = null) $this->setMessage( JText::_( - (JFactory::getLanguage()->hasKey($this->text_prefix . ($recordId == 0 && $app->isClient('site') ? '_SUBMIT' : '') . '_SAVE_SUCCESS') - ? $this->text_prefix : 'JLIB_APPLICATION') . ($recordId == 0 && $app->isClient('site') ? '_SUBMIT' : '') . '_SAVE_SUCCESS' + (JFactory::getLanguage()->hasKey($this->text_prefix . ($recordId === 0 && $app->isClient('site') ? '_SUBMIT' : '') . '_SAVE_SUCCESS') + ? $this->text_prefix : 'JLIB_APPLICATION') . ($recordId === 0 && $app->isClient('site') ? '_SUBMIT' : '') . '_SAVE_SUCCESS' ) ); diff --git a/administrator/components/com_finder/controllers/indexer.json.php b/administrator/components/com_finder/controllers/indexer.json.php index 71683cf008adc..594625a1d6ca9 100644 --- a/administrator/components/com_finder/controllers/indexer.json.php +++ b/administrator/components/com_finder/controllers/indexer.json.php @@ -55,7 +55,7 @@ public function start() $app->setHeader('Pragma', 'no-cache'); // Check for a valid token. If invalid, send a 403 with the error message. - JSession::checkToken('request') or $this->sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); + JSession::checkToken('request') or static::sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); // Put in a buffer to silence noise. ob_start(); @@ -81,12 +81,12 @@ public function start() $state->start = 1; // Send the response. - $this->sendResponse($state); + static::sendResponse($state); } // Catch an exception and return the response. catch (Exception $e) { - $this->sendResponse($e); + static::sendResponse($e); } } @@ -126,7 +126,7 @@ public function batch() $app->setHeader('Pragma', 'no-cache'); // Check for a valid token. If invalid, send a 403 with the error message. - JSession::checkToken('request') or $this->sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); + JSession::checkToken('request') or static::sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); // Put in a buffer to silence noise. ob_start(); @@ -165,6 +165,8 @@ public function batch() // Get the HTML document. $html = JDocument::getInstance('html', $attributes); + + // Todo: Why is this document fetched and immediately overwritten? $doc = JFactory::getDocument(); // Swap the documents. @@ -178,6 +180,8 @@ public function batch() // Swap the app. $app = JFactory::getApplication(); + + // Todo: Why is the app fetched and immediately overwritten? $app = $site; // Start the indexer. @@ -211,7 +215,7 @@ public function batch() } // Send the response. - $this->sendResponse($state); + static::sendResponse($state); } // Catch an exception and return the response. catch (Exception $e) @@ -220,7 +224,7 @@ public function batch() $doc = $raw; // Send the response. - $this->sendResponse($e); + static::sendResponse($e); } } @@ -241,7 +245,7 @@ public function optimize() $app->setHeader('Pragma', 'no-cache'); // Check for a valid token. If invalid, send a 403 with the error message. - JSession::checkToken('request') or $this->sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); + JSession::checkToken('request') or static::sendResponse(new Exception(JText::_('JINVALID_TOKEN'), 403)); // Put in a buffer to silence noise. ob_start(); @@ -260,12 +264,12 @@ public function optimize() $state->complete = 1; // Send the response. - $this->sendResponse($state); + static::sendResponse($state); } // Catch an exception and return the response. catch (Exception $e) { - $this->sendResponse($e); + static::sendResponse($e); } } diff --git a/administrator/components/com_finder/helpers/finder.php b/administrator/components/com_finder/helpers/finder.php index d58de10516bfd..c54d0a160acca 100644 --- a/administrator/components/com_finder/helpers/finder.php +++ b/administrator/components/com_finder/helpers/finder.php @@ -38,17 +38,17 @@ public static function addSubmenu($vName) JHtmlSidebar::addEntry( JText::_('COM_FINDER_SUBMENU_INDEX'), 'index.php?option=com_finder&view=index', - $vName == 'index' + $vName === 'index' ); JHtmlSidebar::addEntry( JText::_('COM_FINDER_SUBMENU_MAPS'), 'index.php?option=com_finder&view=maps', - $vName == 'maps' + $vName === 'maps' ); JHtmlSidebar::addEntry( JText::_('COM_FINDER_SUBMENU_FILTERS'), 'index.php?option=com_finder&view=filters', - $vName == 'filters' + $vName === 'filters' ); } diff --git a/administrator/components/com_finder/helpers/language.php b/administrator/components/com_finder/helpers/language.php index 169dc710cd41f..4589c8eb7a188 100644 --- a/administrator/components/com_finder/helpers/language.php +++ b/administrator/components/com_finder/helpers/language.php @@ -29,7 +29,7 @@ public static function branchPlural($branchName) { $return = preg_replace('/[^a-zA-Z0-9]+/', '_', strtoupper($branchName)); - if ($return != '_') + if ($return !== '_') { return 'PLG_FINDER_QUERY_FILTER_BRANCH_P_' . $return; } @@ -66,7 +66,7 @@ public static function branchLanguageTitle($branchName) { $title = $branchName; - if ($branchName == '*') + if ($branchName === '*') { $title = JText::_('JALL_LANGUAGE'); } diff --git a/administrator/components/com_finder/models/fields/contentmap.php b/administrator/components/com_finder/models/fields/contentmap.php index 3e12dacff3a5c..4ef5607f41593 100644 --- a/administrator/components/com_finder/models/fields/contentmap.php +++ b/administrator/components/com_finder/models/fields/contentmap.php @@ -93,7 +93,7 @@ protected function getGroups() { $levelPrefix = str_repeat('- ', max(0, $branch->level - 1)); - if (trim($name, '**') == 'Language') + if (trim($name, '**') === 'Language') { $text = FinderHelperLanguage::branchLanguageTitle($branch->text); } diff --git a/administrator/components/com_finder/models/filter.php b/administrator/components/com_finder/models/filter.php index 17e1d6fe0d1a2..59c68b36a3adf 100644 --- a/administrator/components/com_finder/models/filter.php +++ b/administrator/components/com_finder/models/filter.php @@ -163,13 +163,11 @@ protected function loadFormData() */ public function getTotal() { - $db = JFactory::getDbo(); + $db = JFactory::getDbo(); $query = $db->getQuery(true) ->select('MAX(link_id)') ->from('#__finder_links'); - $db->setQuery($query); - $total = $db->loadResult(); - return $total; + return $db->setQuery($query)->loadResult(); } } diff --git a/administrator/components/com_finder/models/index.php b/administrator/components/com_finder/models/index.php index 04e2560dbe9db..7f9b9a67b718f 100644 --- a/administrator/components/com_finder/models/index.php +++ b/administrator/components/com_finder/models/index.php @@ -225,7 +225,7 @@ protected function getListQuery() $listOrder = $this->getState('list.ordering', 'l.title'); $listDir = $this->getState('list.direction', 'ASC'); - if ($listOrder == 't.title') + if ($listOrder === 't.title') { $ordering = $db->quoteName('t.title') . ' ' . $db->escape($listDir) . ', ' . $db->quoteName('l.title') . ' ' . $db->escape($listDir); } @@ -417,16 +417,13 @@ public function publish(&$pks, $value = 1) { $table->reset(); - if ($table->load($pk)) + if ($table->load($pk) && !$this->canEditState($table)) { - if (!$this->canEditState($table)) - { - // Prune items that you can't change. - unset($pks[$i]); - $this->setError(JText::_('JLIB_APPLICATION_ERROR_EDITSTATE_NOT_PERMITTED')); + // Prune items that you can't change. + unset($pks[$i]); + $this->setError(JText::_('JLIB_APPLICATION_ERROR_EDITSTATE_NOT_PERMITTED')); - return false; - } + return false; } } diff --git a/administrator/components/com_finder/models/maps.php b/administrator/components/com_finder/models/maps.php index 6b25455578a99..985dfce6bb613 100644 --- a/administrator/components/com_finder/models/maps.php +++ b/administrator/components/com_finder/models/maps.php @@ -225,11 +225,11 @@ protected function getListQuery() $listOrdering = $this->getState('list.ordering', 'd.branch_title'); $listDirn = $this->getState('list.direction', 'ASC'); - if ($listOrdering == 'd.branch_title') + if ($listOrdering === 'd.branch_title') { $query->order("branch_title $listDirn, level ASC, a.title $listDirn"); } - elseif ($listOrdering == 'a.state') + elseif ($listOrdering === 'a.state') { $query->order("a.state $listDirn, branch_title $listDirn, level ASC"); } @@ -345,16 +345,13 @@ public function publish(&$pks, $value = 1) { $table->reset(); - if ($table->load($pk)) + if ($table->load($pk) && !$this->canEditState($table)) { - if (!$this->canEditState($table)) - { - // Prune items that you can't change. - unset($pks[$i]); - $this->setError(JText::_('JLIB_APPLICATION_ERROR_EDITSTATE_NOT_PERMITTED')); + // Prune items that you can't change. + unset($pks[$i]); + $this->setError(JText::_('JLIB_APPLICATION_ERROR_EDITSTATE_NOT_PERMITTED')); - return false; - } + return false; } } diff --git a/administrator/components/com_finder/tables/filter.php b/administrator/components/com_finder/tables/filter.php index 6ca4b0cd73490..cd3a6152babd1 100644 --- a/administrator/components/com_finder/tables/filter.php +++ b/administrator/components/com_finder/tables/filter.php @@ -67,14 +67,14 @@ public function bind($array, $ignore = '') */ public function check() { - if (trim($this->alias) == '') + if (trim($this->alias) === '') { $this->alias = $this->title; } $this->alias = JApplicationHelper::stringURLSafe($this->alias); - if (trim(str_replace('-', '', $this->alias)) == '') + if (trim(str_replace('-', '', $this->alias)) === '') { $this->alias = JFactory::getDate()->format('Y-m-d-H-i-s'); } @@ -168,12 +168,12 @@ public function publish($pks = null, $state = 1, $userId = 0) } // If checkin is supported and all rows were adjusted, check them in. - if ($checkin && (count($pks) == $this->_db->getAffectedRows())) + if ($checkin && count($pks) === $this->_db->getAffectedRows()) { // Checkin the rows. foreach ($pks as $pk) { - $this->checkin($pk); + $this->checkIn($pk); } } diff --git a/administrator/components/com_finder/views/filter/view.html.php b/administrator/components/com_finder/views/filter/view.html.php index 702ab8076a1a3..f725a2464e62a 100644 --- a/administrator/components/com_finder/views/filter/view.html.php +++ b/administrator/components/com_finder/views/filter/view.html.php @@ -20,6 +20,8 @@ class FinderViewFilter extends JViewLegacy * The filter object * * @var FinderTableFilter + * + * @since 3.6.2 */ protected $filter; @@ -27,23 +29,38 @@ class FinderViewFilter extends JViewLegacy * The JForm object * * @var JForm + * + * @since 3.6.2 */ protected $form; /** * The active item * - * @var object + * @var JObject|boolean + * + * @since 3.6.2 */ protected $item; /** * The model state * - * @var object + * @var mixed + * + * @since 3.6.2 */ protected $state; + /** + * The total indexed items + * + * @var integer + * + * @since __DEPLOY_VERSION__ + */ + protected $total; + /** * Method to display the view. * @@ -114,19 +131,16 @@ protected function addToolbar() else { // Can't save the record if it's checked out. - if (!$checkedOut) + // Since it's an existing record, check the edit permission. + if (!$checkedOut && $canDo->get('core.edit')) { - // Since it's an existing record, check the edit permission. - if ($canDo->get('core.edit')) + JToolbarHelper::apply('filter.apply'); + JToolbarHelper::save('filter.save'); + + // We can save this record, but check the create permission to see if we can return to make a new one. + if ($canDo->get('core.create')) { - JToolbarHelper::apply('filter.apply'); - JToolbarHelper::save('filter.save'); - - // We can save this record, but check the create permission to see if we can return to make a new one. - if ($canDo->get('core.create')) - { - JToolbarHelper::save2new('filter.save2new'); - } + JToolbarHelper::save2new('filter.save2new'); } } diff --git a/administrator/components/com_finder/views/filters/tmpl/default.php b/administrator/components/com_finder/views/filters/tmpl/default.php index c7ead6c2b3df7..07f9feeb67f1a 100644 --- a/administrator/components/com_finder/views/filters/tmpl/default.php +++ b/administrator/components/com_finder/views/filters/tmpl/default.php @@ -88,43 +88,47 @@ authorise('core.create', 'com_finder'); + $canEdit = $user->authorise('core.edit', 'com_finder'); + $userAuthoriseCoreManage = $user->authorise('core.manage', 'com_checkin'); + $userAuthoriseCoreEditState = $user->authorise('core.edit.state', 'com_finder'); + $userId = $user->get('id'); foreach ($this->items as $i => $item) : - $canCreate = $user->authorise('core.create', 'com_finder'); - $canEdit = $user->authorise('core.edit', 'com_finder'); - $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0; - $canChange = $user->authorise('core.edit.state', 'com_finder') && $canCheckin; - ?> - - - - - - - - - + $canCheckIn = $userAuthoriseCoreManage || $item->checked_out == $userId || $item->checked_out == 0; + $canChange = $userAuthoriseCoreEditState && $canCheckIn; + $escapedTitle = $this->escape($item->title); + ?> + + + + + + + + +
      - filter_id); ?> - - state, $i, 'filters.', $canChange); ?> - - checked_out) : ?> - editor, $item->checked_out_time, 'filters.', $canCheckin); ?> - - - - escape($item->title); ?> - - escape($item->title); ?> - - - created_by_alias ?: $item->user_name; ?> - - created, JText::_('DATE_FORMAT_LC4')); ?> - - map_count; ?> - - filter_id; ?> -
      + filter_id); ?> + + state, $i, 'filters.', $canChange); ?> + + checked_out) : ?> + editor, $item->checked_out_time, 'filters.', $canCheckIn); ?> + + + + + + + + + created_by_alias ?: $item->user_name; ?> + + created, JText::_('DATE_FORMAT_LC4')); ?> + + map_count; ?> + + filter_id; ?> +
      diff --git a/administrator/components/com_finder/views/filters/view.html.php b/administrator/components/com_finder/views/filters/view.html.php index f65859ba4fd6b..823fd40e484b1 100644 --- a/administrator/components/com_finder/views/filters/view.html.php +++ b/administrator/components/com_finder/views/filters/view.html.php @@ -20,6 +20,8 @@ class FinderViewFilters extends JViewLegacy * An array of items * * @var array + * + * @since 3.6.1 */ protected $items; @@ -27,6 +29,8 @@ class FinderViewFilters extends JViewLegacy * The pagination object * * @var JPagination + * + * @since 3.6.1 */ protected $pagination; @@ -34,20 +38,26 @@ class FinderViewFilters extends JViewLegacy * The HTML markup for the sidebar * * @var string + * + * @since 3.6.1 */ protected $sidebar; /** * The model state * - * @var object + * @var mixed + * + * @since 3.6.1 */ protected $state; /** * The total number of items * - * @var object + * @var integer + * + * @since 3.6.1 */ protected $total; diff --git a/administrator/components/com_finder/views/index/tmpl/default.php b/administrator/components/com_finder/views/index/tmpl/default.php index 7b2a066403c8a..387c51e9bfd41 100644 --- a/administrator/components/com_finder/views/index/tmpl/default.php +++ b/administrator/components/com_finder/views/index/tmpl/default.php @@ -118,7 +118,7 @@ indexdate, JText::_('DATE_FORMAT_LC4')); ?> - publish_start_date) or intval($item->publish_end_date) or intval($item->start_date) or intval($item->end_date)) : ?> + publish_start_date || (int) $item->publish_end_date || (int) $item->start_date || (int) $item->end_date) : ?> publish_start_date, $item->publish_end_date, $item->start_date, $item->end_date); ?> diff --git a/administrator/components/com_finder/views/index/view.html.php b/administrator/components/com_finder/views/index/view.html.php index 880a696e19094..681718eff6a70 100644 --- a/administrator/components/com_finder/views/index/view.html.php +++ b/administrator/components/com_finder/views/index/view.html.php @@ -22,6 +22,8 @@ class FinderViewIndex extends JViewLegacy * An array of items * * @var array + * + * @since 3.6.1 */ protected $items; @@ -29,6 +31,8 @@ class FinderViewIndex extends JViewLegacy * The pagination object * * @var JPagination + * + * @since 3.6.1 */ protected $pagination; @@ -36,6 +40,8 @@ class FinderViewIndex extends JViewLegacy * The state of core Smart Search plugins * * @var array + * + * @since 3.6.1 */ protected $pluginState; @@ -43,20 +49,26 @@ class FinderViewIndex extends JViewLegacy * The HTML markup for the sidebar * * @var string + * + * @since 3.6.1 */ protected $sidebar; /** * The model state * - * @var object + * @var mixed + * + * @since 3.6.1 */ protected $state; /** * The total number of items * - * @var object + * @var integer + * + * @since 3.6.1 */ protected $total; diff --git a/administrator/components/com_finder/views/maps/tmpl/default.php b/administrator/components/com_finder/views/maps/tmpl/default.php index 5835f81048dae..6c93f665429af 100644 --- a/administrator/components/com_finder/views/maps/tmpl/default.php +++ b/administrator/components/com_finder/views/maps/tmpl/default.php @@ -99,7 +99,7 @@ parent_title, '**') == 'Language') + if (trim($item->parent_title, '**') === 'Language') { $title = FinderHelperLanguage::branchLanguageTitle($item->title); } @@ -115,7 +115,7 @@ - escape(trim($title, '**')) == 'Language' && JLanguageMultilang::isEnabled()) : ?> + escape(trim($title, '**')) === 'Language' && JLanguageMultilang::isEnabled()) : ?> diff --git a/administrator/components/com_finder/views/maps/view.html.php b/administrator/components/com_finder/views/maps/view.html.php index 9a5cdfe4495bc..59eb08744d323 100644 --- a/administrator/components/com_finder/views/maps/view.html.php +++ b/administrator/components/com_finder/views/maps/view.html.php @@ -22,6 +22,8 @@ class FinderViewMaps extends JViewLegacy * An array of items * * @var array + * + * @since 3.6.1 */ protected $items; @@ -29,6 +31,8 @@ class FinderViewMaps extends JViewLegacy * The pagination object * * @var JPagination + * + * @since 3.6.1 */ protected $pagination; @@ -36,6 +40,8 @@ class FinderViewMaps extends JViewLegacy * The HTML markup for the sidebar * * @var string + * + * @since 3.6.1 */ protected $sidebar; @@ -43,6 +49,8 @@ class FinderViewMaps extends JViewLegacy * The model state * * @var object + * + * @since 3.6.1 */ protected $state; @@ -50,6 +58,8 @@ class FinderViewMaps extends JViewLegacy * The total number of items * * @var object + * + * @since 3.6.1 */ protected $total; diff --git a/administrator/components/com_finder/views/statistics/tmpl/default.php b/administrator/components/com_finder/views/statistics/tmpl/default.php index f5597fffa26fa..9b7651253dd92 100644 --- a/administrator/components/com_finder/views/statistics/tmpl/default.php +++ b/administrator/components/com_finder/views/statistics/tmpl/default.php @@ -34,7 +34,7 @@ type_title); $lang_string = JText::_($lang_key); - echo ($lang_string == $lang_key) ? $type->type_title : $lang_string; + echo $lang_string === $lang_key ? $type->type_title : $lang_string; ?> diff --git a/administrator/components/com_finder/views/statistics/view.html.php b/administrator/components/com_finder/views/statistics/view.html.php index a938942bb7450..af7689fb0a1d4 100644 --- a/administrator/components/com_finder/views/statistics/view.html.php +++ b/administrator/components/com_finder/views/statistics/view.html.php @@ -20,6 +20,8 @@ class FinderViewStatistics extends JViewLegacy * The index statistics * * @var JObject + * + * @since 3.6.1 */ protected $data; diff --git a/components/com_finder/helpers/html/filter.php b/components/com_finder/helpers/html/filter.php index b464cda411f4d..dbc88b2fee30c 100644 --- a/components/com_finder/helpers/html/filter.php +++ b/components/com_finder/helpers/html/filter.php @@ -116,7 +116,7 @@ public static function slider($options = array()) foreach ($branches as $bk => $bv) { // If the multi-lang plugin is enabled then drop the language branch. - if ($bv->title == 'Language' && JLanguageMultilang::isEnabled()) + if ($bv->title === 'Language' && JLanguageMultilang::isEnabled()) { continue; } @@ -150,7 +150,7 @@ public static function slider($options = array()) $lang = JFactory::getLanguage(); foreach ($nodes as $nk => $nv) { - if (trim($nv->parent_title, '**') == 'Language') + if (trim($nv->parent_title, '**') === 'Language') { $title = FinderHelperLanguage::branchLanguageTitle($nv->title); } @@ -302,7 +302,7 @@ public static function select($idxQuery, $options) foreach ($branches as $bk => $bv) { // If the multi-lang plugin is enabled then drop the language branch. - if ($bv->title == 'Language' && JLanguageMultilang::isEnabled()) + if ($bv->title === 'Language' && JLanguageMultilang::isEnabled()) { continue; } @@ -342,7 +342,7 @@ public static function select($idxQuery, $options) $language = JFactory::getLanguage(); foreach ($branches[$bk]->nodes as $node_id => $node) { - if (trim($node->parent_title, '**') == 'Language') + if (trim($node->parent_title, '**') === 'Language') { $title = FinderHelperLanguage::branchLanguageTitle($node->title); } @@ -375,7 +375,7 @@ public static function select($idxQuery, $options) foreach ($branches as $bk => $bv) { // If the multi-lang plugin is enabled then drop the language branch. - if ($bv->title == 'Language' && JLanguageMultilang::isEnabled()) + if ($bv->title === 'Language' && JLanguageMultilang::isEnabled()) { continue; } @@ -394,14 +394,14 @@ public static function select($idxQuery, $options) // Build a node. $html .= '
      '; - $html .= '
      '; } diff --git a/components/com_finder/helpers/html/query.php b/components/com_finder/helpers/html/query.php index fb01e80cf766c..2e28d0ba4b8e1 100644 --- a/components/com_finder/helpers/html/query.php +++ b/components/com_finder/helpers/html/query.php @@ -50,7 +50,7 @@ public static function explained(FinderIndexerQuery $query) // Process the excluded tokens. foreach ($query->excluded as $token) { - if (!isset($token->derived) || $token->derived == false) + if (!isset($token->derived) || $token->derived === false) { $parts[] = '' . JText::sprintf('COM_FINDER_QUERY_TOKEN_EXCLUDED', $token->term) . ''; } diff --git a/components/com_finder/models/search.php b/components/com_finder/models/search.php index 0c1f9914e40d4..4699316f74920 100644 --- a/components/com_finder/models/search.php +++ b/components/com_finder/models/search.php @@ -264,11 +264,11 @@ protected function getListQuery() $date1 = $db->quote($this->query->date1); // Add the appropriate WHERE condition. - if ($this->query->when1 == 'before') + if ($this->query->when1 === 'before') { $query->where($db->quoteName('l.start_date') . ' <= ' . $date1); } - elseif ($this->query->when1 == 'after') + elseif ($this->query->when1 === 'after') { $query->where($db->quoteName('l.start_date') . ' >= ' . $date1); } @@ -285,11 +285,11 @@ protected function getListQuery() $date2 = $db->quote($this->query->date2); // Add the appropriate WHERE condition. - if ($this->query->when2 == 'before') + if ($this->query->when2 === 'before') { $query->where($db->quoteName('l.start_date') . ' <= ' . $date2); } - elseif ($this->query->when2 == 'after') + elseif ($this->query->when2 === 'after') { $query->where($db->quoteName('l.start_date') . ' >= ' . $date2); } @@ -425,7 +425,7 @@ protected function getResultsTotal() $temp = $this->_db->loadObjectList(); // Set the more flag to true if any of the sets equal the limit. - $more = (count($temp) === $limit) ? true : false; + $more = count($temp) === $limit; // We loaded the data unkeyed but we need it to be keyed for later. $junk = $temp; @@ -536,7 +536,7 @@ protected function getResultsTotal() $temp = $this->_db->loadObjectList('link_id'); // Set the required token more flag to true if the set equal the limit. - $reqMore = (count($temp) === $limit) ? true : false; + $reqMore = count($temp) === $limit; // Merge the matching set for this token. $reqTemp += $temp; @@ -544,7 +544,7 @@ protected function getResultsTotal() // Increment the term offset. $reqStart += $limit; } - while ($reqMore == true); + while ($reqMore === true); // Store this set in cache. $this->store($setId, $reqTemp); @@ -711,7 +711,7 @@ protected function getResultsData() } // Set the more flag to true if any of the sets equal the limit. - $more = (count($temp) === $limit) ? true : false; + $more = count($temp) === $limit; // Merge the results. $results = array_merge($results, $temp); @@ -857,7 +857,7 @@ protected function getResultsData() $temp = $this->_db->loadObjectList('link_id'); // Set the required token more flag to true if the set equal the limit. - $reqMore = (count($temp) === $limit) ? true : false; + $reqMore = count($temp) === $limit; // Merge the matching set for this token. $reqTemp += $temp; @@ -865,7 +865,7 @@ protected function getResultsData() // Increment the term offset. $reqStart += $limit; } - while ($reqMore == true); + while ($reqMore === true); // Store this set in cache. $this->store($setId, $reqTemp); @@ -1048,7 +1048,6 @@ protected function populateState($ordering = null, $direction = null) $input = $app->input; $params = $app->getParams(); $user = JFactory::getUser(); - $filter = JFilterInput::getInstance(); $this->setState('filter.language', JLanguageMultilang::isEnabled()); @@ -1114,7 +1113,7 @@ protected function populateState($ordering = null, $direction = null) $this->setState('list.ordering', 'l.list_price'); break; - case ($order == 'relevance' && !empty($this->includedTerms)) : + case ($order === 'relevance' && !empty($this->includedTerms)) : $this->setState('list.ordering', 'm.weight'); break; diff --git a/components/com_finder/router.php b/components/com_finder/router.php index 4e9fb54aeb15c..2c0e8dbaa4dcf 100644 --- a/components/com_finder/router.php +++ b/components/com_finder/router.php @@ -34,7 +34,7 @@ public function build(&$query) * route, it only provides the option and the menu item id. We don't have * to do anything to these routes. */ - if (count($query) === 2 && isset($query['Itemid']) && isset($query['option'])) + if (count($query) === 2 && isset($query['Itemid'], $query['option'])) { return $segments; } diff --git a/components/com_finder/views/search/tmpl/default_results.php b/components/com_finder/views/search/tmpl/default_results.php index 895df6aa22350..a031d7bb2d273 100644 --- a/components/com_finder/views/search/tmpl/default_results.php +++ b/components/com_finder/views/search/tmpl/default_results.php @@ -33,7 +33,7 @@ -total == 0) : ?> +total === 0) : ?>

      getLanguageFilter() ? '_MULTILANG' : ''; ?> diff --git a/components/com_finder/views/search/view.html.php b/components/com_finder/views/search/view.html.php index 2d615340774fe..f2c15cf351828 100644 --- a/components/com_finder/views/search/view.html.php +++ b/components/com_finder/views/search/view.html.php @@ -18,14 +18,56 @@ */ class FinderViewSearch extends JViewLegacy { + /** + * The query object + * + * @var FinderIndexerQuery + */ protected $query; + /** + * The application parameters + * + * @var Registry The parameters object + */ protected $params; + /** + * The model state + * + * @var object + */ protected $state; protected $user; + /** + * An array of results + * + * @var array + * + * @since __DEPLOY_VERSION__ + */ + protected $results; + + /** + * The total number of items + * + * @var integer + * + * @since __DEPLOY_VERSION__ + */ + protected $total; + + /** + * The pagination object + * + * @var JPagination + * + * @since __DEPLOY_VERSION__ + */ + protected $pagination; + /** * Method to display the view. * @@ -37,7 +79,7 @@ class FinderViewSearch extends JViewLegacy */ public function display($tpl = null) { - $app = JFactory::getApplication(); + $app = JFactory::getApplication(); $params = $app->getParams(); // Get view data. @@ -55,21 +97,22 @@ public function display($tpl = null) if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); + return false; } // Configure the pathway. if (!empty($query->input)) { - $app->getPathWay()->addItem($this->escape($query->input)); + $app->getPathway()->addItem($this->escape($query->input)); } // Push out the view data. - $this->state = &$state; - $this->params = &$params; - $this->query = &$query; - $this->results = &$results; - $this->total = &$total; + $this->state = &$state; + $this->params = &$params; + $this->query = &$query; + $this->results = &$results; + $this->total = &$total; $this->pagination = &$pagination; // Check for a double quote in the query string. @@ -166,7 +209,7 @@ protected function getLayoutFile($layout = null) // Check if the file exists. jimport('joomla.filesystem.path'); $filetofind = $this->_createFileName('template', array('name' => $file)); - $exists = JPath::find($this->_path['template'], $filetofind); + $exists = JPath::find($this->_path['template'], $filetofind); return ($exists ? $layout : 'result'); } @@ -182,7 +225,7 @@ protected function getLayoutFile($layout = null) */ protected function prepareDocument($query) { - $app = JFactory::getApplication(); + $app = JFactory::getApplication(); $menus = $app->getMenu(); $title = null; @@ -231,12 +274,12 @@ protected function prepareDocument($query) // Configure the document meta-keywords. if (!empty($query->highlight)) { - $this->document->setMetadata('keywords', implode(', ', $query->highlight)); + $this->document->setMetaData('keywords', implode(', ', $query->highlight)); } if ($this->params->get('robots')) { - $this->document->setMetadata('robots', $this->params->get('robots')); + $this->document->setMetaData('robots', $this->params->get('robots')); } // Add feed link to the document head. From c5a29d5622f58c10968faf4585aacc9f4e1de27e Mon Sep 17 00:00:00 2001 From: Thomas Hunziker Date: Thu, 20 Jul 2017 21:46:45 +0200 Subject: [PATCH 030/148] Updated installation language files --- installation/language/af-ZA/af-ZA.ini | 3 +++ installation/language/da-DK/da-DK.ini | 3 +++ installation/language/fr-FR/fr-FR.ini | 6 +++--- installation/language/hr-HR/hr-HR.ini | 6 +++--- installation/language/it-IT/it-IT.ini | 6 +++--- installation/language/ja-JP/ja-JP.ini | 15 +++++++++++---- installation/language/ja-JP/ja-JP.xml | 4 ++-- installation/language/ko-KR/ko-KR.ini | 3 +++ installation/language/ko-KR/ko-KR.xml | 4 ++-- installation/language/mk-MK/mk-MK.ini | 6 +++--- installation/language/sk-SK/sk-SK.ini | 6 +++--- installation/language/sl-SI/sl-SI.ini | 4 ++-- installation/language/sr-RS/sr-RS.ini | 3 +++ installation/language/sr-RS/sr-RS.xml | 4 ++-- installation/language/sr-YU/sr-YU.ini | 3 +++ installation/language/sr-YU/sr-YU.xml | 4 ++-- installation/language/sw-KE/sw-KE.ini | 6 +++--- installation/language/ta-IN/ta-IN.ini | 10 +++++----- installation/language/th-TH/th-TH.ini | 6 +++--- 19 files changed, 62 insertions(+), 40 deletions(-) diff --git a/installation/language/af-ZA/af-ZA.ini b/installation/language/af-ZA/af-ZA.ini index a732fb3a2a412..7a77b3dbbd657 100644 --- a/installation/language/af-ZA/af-ZA.ini +++ b/installation/language/af-ZA/af-ZA.ini @@ -316,3 +316,6 @@ JLIB_INSTALLER_ABORT="Taalpaket installeering word afgebreek: %s" JLIB_INSTALLER_ABORT_PACK_INSTALL_CREATE_DIRECTORY="Paket Installeering: Kon nie vouer skep nie: %s." JLIB_INSTALLER_ABORT_PACK_INSTALL_ERROR_EXTENSION="Paket %1: Daar was 'n fout met die installeering van ekstensie: %2" JLIB_INSTALLER_ABORT_PACK_INSTALL_NO_FILES="Paket %s: Daar was geen lêërs om te installeer nie!" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Om een of ander rede kan ons nie die lêer skep nie. Skep asb. per hand 'n lêer "%s" en laai dit op na die "installation"-vouer van jou Joomla webwerf." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Sodat ons kan bevestig dat jy die eienaar van hierdie webwerf is, verwyder asb. die lêer "%s" wat ons nou net in die "installation"-vouer van jou Joomla webwerf geskep het." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Jy wil jou databasis op 'n ander bediener huisves as waar jou webwerf gehuisves is. Vir sekuriteits-redes moet jy bevestig wie die eienaar van hierdie webhosting rekening is. Gaan asb. die dokumentasie na vir verdere inligting." diff --git a/installation/language/da-DK/da-DK.ini b/installation/language/da-DK/da-DK.ini index cbce30c66f3ac..193ee829297c8 100644 --- a/installation/language/da-DK/da-DK.ini +++ b/installation/language/da-DK/da-DK.ini @@ -31,6 +31,9 @@ INSTL_DATABASE="Databasekonfiguration" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL database forespørgsel fejlede." INSTL_DATABASE_HOST_DESC="Dette er typisk "_QQ_"localhost"_QQ_" eller et navn leveret af din udbyder." INSTL_DATABASE_HOST_LABEL="Hostnavn" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Vi kunne ikke oprette filen. Opret venligst manuelt en fil med navnet "_QQ_"%s"_QQ_" og upload den til mappen "_QQ_"installation"_QQ_" i din Joomla websteds rod." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="For at bekræfte at du er ejeren af dette websted, så slet venligst filen der hedder "_QQ_"%s"_QQ_", som vi netop har oprettet i mappen "_QQ_"installation"_QQ_" på Joomla websted." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Du prøver på at anvende en database host, som ikke er på din lokale server. Af sikkerhedsgrunde skal du verificere ejerskabet af din webhost konto. Læs venligst dokumentationen for mere information." INSTL_DATABASE_NAME_DESC="Nogle webhosts tillader kun et bestemt databasenavn pr websted. Anvend tabelprefiks i disse situationer for at køre flere Joomla! websteder fra samme database." INSTL_DATABASE_NAME_LABEL="Databasenavn" INSTL_DATABASE_NO_SCHEMA="Intet database skema eksisterer for denne databasetype." diff --git a/installation/language/fr-FR/fr-FR.ini b/installation/language/fr-FR/fr-FR.ini index 5926908d70768..58211c53d66e6 100644 --- a/installation/language/fr-FR/fr-FR.ini +++ b/installation/language/fr-FR/fr-FR.ini @@ -30,10 +30,10 @@ INSTL_PRECHECK_ACTUAL="Actuel" INSTL_DATABASE="Configuration de la base de données" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="Échec de requête de base de données PostgreSQL." INSTL_DATABASE_HOST_DESC="Généralement "_QQ_"localhost"_QQ_" sauf indication différente de l'hébergeur." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Nous ne sommes pas en mesure de créer le fichier. Créez manuellement un fichier nommé '%s' et téléchargez-le dans le dossier 'installation' de votre site Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Afin de confirmer que vous êtes le propriétaire de ce site Web, supprimez le fichier '%s' que nous venons de créer dans le dossier 'installation' de votre site Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Vous souhaitez utiliser un hôte de base de données qui n'est pas sur votre serveur local. Pour des raisons de sécurité, vous devez vérifier la propriété du compte d'hébergement Web utilisé. Lire la documentation pour plus d'informations." INSTL_DATABASE_HOST_LABEL="Nom du serveur" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Pour une raison quelconque, nous ne sommes pas en mesure de créer le fichier. Créez manuellement un fichier nommé %s et téléchargez-le dans le dossier 'installation' de votre Joomla." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Afin de confirmer que vous êtes le propriétaire de ce site Web, supprimez le fichier %s que nous venons de créer dans le dossier 'installation' de votre Joomla." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Vous souhaitez utiliser un hôte de base de données qui n'est pas 'localhost'. Pour des raisons de sécurité, vous devez vérifier la propriété du compte d'hébergement Web utilisé. Consultez ici [docspagelink] pour plus d'informations." INSTL_DATABASE_NAME_DESC="Nom de la base de données utilisée pour Joomla!
      Généralement, la base de données doit déjà exister sur serveur distant!" INSTL_DATABASE_NAME_LABEL="Nom de la base de données" INSTL_DATABASE_NO_SCHEMA="Ce type de base de données ne contient pas de schema de base de données." diff --git a/installation/language/hr-HR/hr-HR.ini b/installation/language/hr-HR/hr-HR.ini index e68c5f222d6e9..8752a5c78ac76 100644 --- a/installation/language/hr-HR/hr-HR.ini +++ b/installation/language/hr-HR/hr-HR.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="Konfiguracija baze podataka" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL upit na bazu nije uspio." INSTL_DATABASE_HOST_DESC="Ovo je najčešće "_QQ_"localhost"_QQ_" ili ime koje ste dobili od hostera." INSTL_DATABASE_HOST_LABEL="Ime servera" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Želite koristiti server baze podataka koji nije localhost. Iz sigurnosnih razloga morate potvrditi vlasništvo web hosting korisničkog računa. Za više informacija pogledaj ovdje [docspagelink]." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Kako bi potvrdili da ste vlasnik ovog web hosta, molimo da izbrišete datoteku %s koju smo upravo kreirali u "_QQ_"installation"_QQ_" direktoriju vaše Joomle." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Iz nekog razloga nismo mogli kreirati datoteku. Molimo vas da ručno kreirate datoteku naziva %s i učitate je u "_QQ_"installation"_QQ_" direktorij vaše Joomle." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Nismo mogli kreirati datoteku. Molimo vas da ručno kreirate datoteku naziva "_QQ_"%s"_QQ_" i učitate je u "_QQ_"installation"_QQ_" direktorij vašeg Joomla sitea." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Kako bi potvrdili da ste vlasnik ovog web sitea, molimo da izbrišete datoteku naziva "_QQ_"%s"_QQ_" koju smo upravo kreirali u "_QQ_"installation"_QQ_" direktoriju vašeg Joomla sitea." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Želite koristiti host baze podataka koji nije na vašem lokalnom serveru. Iz sigurnosnih razloga morate potvrditi vlasništvo vašeg web hosting računa. Za više informacija pročitajte dokumentaciju." INSTL_DATABASE_NAME_DESC="Neki hosteri dozvoljavaju samo određena imena baze podataka za svaki site. Koristite drugačiji prefiks tablice za različite Joomla! stranice." INSTL_DATABASE_NAME_LABEL="Ime baze podataka" INSTL_DATABASE_NO_SCHEMA="Ne postoji shema baze podataka za ovaj tip baze podataka." diff --git a/installation/language/it-IT/it-IT.ini b/installation/language/it-IT/it-IT.ini index 658e66da0b168..a85565af78e15 100644 --- a/installation/language/it-IT/it-IT.ini +++ b/installation/language/it-IT/it-IT.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="Configurazione database" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="Query del database PostgreSQL fallita." INSTL_DATABASE_HOST_DESC="Generalmente è "localhost" o un nome fornito dal tuo hosting." INSTL_DATABASE_HOST_LABEL="Nome Host" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Stai utilizzando un tipo di host del database differente da localhost. Per ragioni di sicurezza, devi verificare di avere l'autorizzazione sullo spazio web che ospita il sito. Per maggiori informazioni prendi visione di questo documento: [docspagelink] ." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Per confermare di essere il proprietario di questo spazio web cortesemente elimina il file %s che è appena stato creato nella cartella "installation" del tuo Joomla." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Per qualche ragione non è stato possibile creare il file. Cortesemente crea tu manualmente un file con nome %s e caricalo nella cartella "installation" del tuo Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Stai utilizzando un tipo di host del database differente da localhost. Per ragioni di sicurezza, devi verificare di avere l'autorizzazione sullo spazio web che ospita il sito. Per maggiori informazioni prendi visione di questo Please read the documentation." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Per confermare di essere il proprietario di questo spazio web cortesemente elimina il file "%s" che è appena stato creato nella cartella "installation" del tuo Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Per qualche ragione non è stato possibile creare il file. Cortesemente crea tu manualmente un file con nome "%s" e caricalo nella cartella "installation" del tuo Joomla." INSTL_DATABASE_NAME_DESC="Alcuni gestori di host consentono un solo nome DB per sito. Se questo è il tuo caso, utilizza il prefisso tabelle per distinguere più di un sito Joomla!®." INSTL_DATABASE_NAME_LABEL="Nome database" INSTL_DATABASE_NO_SCHEMA="Non esiste nessun schema di database per questo tipo di database." diff --git a/installation/language/ja-JP/ja-JP.ini b/installation/language/ja-JP/ja-JP.ini index 0043c40a7056c..5c77aae7a4455 100644 --- a/installation/language/ja-JP/ja-JP.ini +++ b/installation/language/ja-JP/ja-JP.ini @@ -31,6 +31,9 @@ INSTL_DATABASE="データベース設定" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQLデータベースのクエリが失敗しました。" INSTL_DATABASE_HOST_DESC="通常は "localhost" ですが、ホストで指定された名前を入力することもあります。
      (特に日本国内の一般向けレンタルサーバなど)" INSTL_DATABASE_HOST_LABEL="ホスト名" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="ファイルを作成できませんでした。手動で「%s」という名前のファイルを作成して「installation」フォルダにアップロードしてください。" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="このウェブサイトの所有者であることを確認するには、「installation」フォルダ内に作成された「%s」という名前のファイルを削除してください。" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="ローカルサーバーにないデータベースホストを使用しようとしています。セキュリティ上の理由から、Webホスティングアカウントの所有権を確認する必要があります。詳細についてはドキュメントをお読みください。" INSTL_DATABASE_NAME_DESC="データベース名です。" INSTL_DATABASE_NAME_LABEL="データベース名" INSTL_DATABASE_NO_SCHEMA="このデータベースタイプにはデータベーススキーマは存在しません。" @@ -124,7 +127,7 @@ INSTL_COMPLETE_ERROR_FOLDER_ALREADY_REMOVED="installationディレクトリは ; The word 'installation' should not be translated as it is a physical folder. INSTL_COMPLETE_ERROR_FOLDER_DELETE="installationディレクトリを削除することができませんでした。手動でフォルダを削除してください。" ; The word 'installation' should not be translated as it is a physical folder. -INSTL_COMPLETE_FOLDER_REMOVED="installationディレクトリを正常に削除しました" +INSTL_COMPLETE_FOLDER_REMOVED="installationディレクトリを削除しました。" INSTL_COMPLETE_LANGUAGE_1="その他言語の追加、多言語サイトの
      サンプル自動作成" ; The word 'installation' should not be translated as it is a physical folder. INSTL_COMPLETE_LANGUAGE_DESC="installation フォルダを削除する前に、他の言語を追加することができます。Joomla!にその他の言語を追加したい場合は、次のボタンを選択してください。" @@ -302,9 +305,13 @@ JLIB_FILESYSTEM_ERROR_COPY_FAILED="コピーに失敗しました" JLIB_FILESYSTEM_ERROR_PATH_IS_NOT_A_FOLDER_FILES="JFolder: :files: パスはフォルダではありません。 パス: %s" JLIB_FORM_FIELD_INVALID="未入力箇所があります: " JLIB_FORM_VALIDATE_FIELD_REQUIRED="%s は入力必須です" +JLIB_INSTALLER_ABORT="言語インストールを中断しています: %s" +JLIB_INSTALLER_ABORT_PACK_INSTALL_CREATE_DIRECTORY="パッケージのインストール: フォルダの作成に失敗しました: %s" +JLIB_INSTALLER_ABORT_PACK_INSTALL_ERROR_EXTENSION="パッケージ %1$s: エクステンションのインストール中にエラーが発生しました: %2$s" +JLIB_INSTALLER_ABORT_PACK_INSTALL_NO_FILES="パッケージ %s: インストールするファイルがありません!" JLIB_FORM_VALIDATE_FIELD_INVALID="無効な項目です: %s" -JLIB_INSTALLER_ERROR_FAIL_COPY_FILE="JInstaller: :Install: ファイル %1$s を %2$s にコピーできませんでした" -JLIB_INSTALLER_NOT_ERROR="If the error is related to the installation of TinyMCE language files it has no effect on the installation of the language(s). Some language packs created prior to Joomla! 3.2.0 may try to install separate TinyMCE language files. As these are now included in the core they no longer need to be installed." +JLIB_INSTALLER_ERROR_FAIL_COPY_FILE="JInstaller: :インストール: ファイル %1$s を %2$s にコピーできませんでした" +JLIB_INSTALLER_NOT_ERROR="エラーがTinyMCE言語ファイルのインストールに関連している場合は、言語のインストールには影響しません。Joomla!3.2.0より前に作成された言語パックの中には、個別にTinyMCE言語ファイルをインストールしようとするものがあります。これらは現在コアに含まれているため、インストールする必要はありません。" JLIB_UTIL_ERROR_CONNECT_DATABASE="JDatabase: :getInstance: データベースに接続できませんでした
      joomla.library: %1$s - %2$s" ; Strings for the language debugger @@ -350,4 +357,4 @@ INSTL_SAMPLE_BLOG_JP_SET_DESC="いくつかの記事と過去の記事、ブロ INSTL_SAMPLE_BROCHURE_JP_SET_DESC="いくつかのページ(ホーム・私たちについて・ニュース・お問い合わせで構成されるメニュー)と検索、カスタムHTML、ログインフォームモジュールを表示したサンプルです。" INSTL_SAMPLE_DATA_JP_SET_DESC="1ページ(1リンクのみのメニュー)と最新の記事、ログインフォームモジュールを表示したサンプルです。" INSTL_SAMPLE_LEARN_JP_SET_DESC="どのようにJoomla!が動作するかの解説記事を表示したサンプルです。" -;INSTL_SAMPLE_TESTING_JP_SET_DESC="Joomla!の動作テストに役立つすべてのメニューアイテムを表示したサンプルです。" +;INSTL_SAMPLE_TESTING_JP_SET_DESC="Joomla!の動作テストに役立つすべてのメニューアイテムを表示したサンプルです。" \ No newline at end of file diff --git a/installation/language/ja-JP/ja-JP.xml b/installation/language/ja-JP/ja-JP.xml index ab6714287c6e7..18bd481e479c0 100644 --- a/installation/language/ja-JP/ja-JP.xml +++ b/installation/language/ja-JP/ja-JP.xml @@ -1,8 +1,8 @@ Japanese 日本語 (Japan) - 3.7.0 - Feburary 2017 + 3.7.4 + July 2017 Joomla.jp Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt diff --git a/installation/language/ko-KR/ko-KR.ini b/installation/language/ko-KR/ko-KR.ini index a59c16c753bdc..ca9030d10326d 100644 --- a/installation/language/ko-KR/ko-KR.ini +++ b/installation/language/ko-KR/ko-KR.ini @@ -30,6 +30,9 @@ INSTL_PRECHECK_ACTUAL="현재 구성된 설정" INSTL_DATABASE="데이터베이스 설정" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL 데이터베이스 질의가 실패했습니다." INSTL_DATABASE_HOST_DESC="일반적으로 "localhost" 혹은 호스트에서 제시된 이름입니다." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="어떤 이유에서인지 파일을 생성할 수 없습니다. %s 파일을 생성하여 Joomla의 "installation" 폴더에 업로드하세요." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="이 웹 호스트의 소유자임을 확인하려면 Joomla의 "installation" 폴더에 생성된 %s 파일을 삭제하세요." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="로컬호스트가 아닌 데이터베이스를 사용하려 합니다. 보안상의 이유로 사용된 웹호스팅 계정의 소유권을 확인해야 합니다. 자세한 내용은 [docspagelink]를 참고하세요." INSTL_DATABASE_HOST_LABEL="Host 이름" INSTL_DATABASE_NAME_DESC="일부 호스트는 사이트별로 특정 DB 이름만 허용합니다. 이 경우 Joomla! 사이트 구분을 위해 테이블 접두사를 사용하세요." INSTL_DATABASE_NAME_LABEL="데이터베이스 이름" diff --git a/installation/language/ko-KR/ko-KR.xml b/installation/language/ko-KR/ko-KR.xml index 9730ce3352e45..de7fb47445065 100644 --- a/installation/language/ko-KR/ko-KR.xml +++ b/installation/language/ko-KR/ko-KR.xml @@ -3,8 +3,8 @@ version="3.7" client="installation"> Korean (Republic of Korea) - 3.7.3 - June 2017 + 3.7.4 + July 2017 Korean translation team Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt diff --git a/installation/language/mk-MK/mk-MK.ini b/installation/language/mk-MK/mk-MK.ini index f0e522b170384..22bbeb2ee079d 100644 --- a/installation/language/mk-MK/mk-MK.ini +++ b/installation/language/mk-MK/mk-MK.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="Поставки за базата на податоци (DB)" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="Неуспешно барање до PostgreSQL базата." INSTL_DATABASE_HOST_DESC="Ова е најчесто "_QQ_"localhost"_QQ_" или име дадено од вашиот хостинг." INSTL_DATABASE_HOST_LABEL="Име на домаќин" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Сакате да користите домаќин на база кој не е localhost. Од безбедносни причини, треба да ја потврдите сопственоста на користената веб сметка. Видете тука [docspagelink] за повеќе информации." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="За да потврдите дека сте сопственик на овој хостинг ве молиме избришете го документот %s кој штотуку го креиравме во папката "installation" од вашата Joomla." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Од некои причини не можеме да го креираме документот. Ве молиме рачно креирајте документ наречен %s и качете го во папката "installation" од вашата Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Не можеме да го креираме документот. Ве молиме рачно креирајте документ наречен "%s" и качете го во папката "installation" од вашиот Joomla сајт." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="За да потврдите дека сте сопственик на овој хостинг ве молиме избришете го документот "%s" кој штотуку го креиравме во папката "installation" од вашиот Joomla сајт." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Сакате да користите домаќин на база кој не е на вашиот локален сервер. Од безбедносни причини, треба да ја потврдите сопственоста на користената веб сметка. Видете тука за повеќе информации." INSTL_DATABASE_NAME_DESC="Некои домаќини дозволуваат само одредени имиња за DB по сајт. Во таков случај користете префикс на табелата за да го разликувате Joomla! сајтот." INSTL_DATABASE_NAME_LABEL="Име на базата на податоци" INSTL_DATABASE_NO_SCHEMA="Не постои шема на база на податоци за овој тип на база." diff --git a/installation/language/sk-SK/sk-SK.ini b/installation/language/sk-SK/sk-SK.ini index f7661c4efc2bf..d022c5f026765 100644 --- a/installation/language/sk-SK/sk-SK.ini +++ b/installation/language/sk-SK/sk-SK.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="Nastavenie databázy" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="Dotaz databázy PostgreSQL zlyhal." INSTL_DATABASE_HOST_DESC="Zvyčajne to je "_QQ_"localhost"_QQ_" alebo názov poskytnutý vaším hostingom." INSTL_DATABASE_HOST_LABEL="Meno hostiteľa" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Chcete použiť hosting databázy, ktorý nie je localhost. Z bezpečnostných dôvodov musíte overiť vlastníctvo použitého webhostingu. Pre viac informácií sa pozrite sem [docspagelink]." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Aby ste potvrdili vlastníctvo webhostingu vymažte, prosím, súbor %s, ktorý sme práve vytvorili v priečinku "_QQ_"installation"_QQ_" vo vašej Joomla." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Z nejakého dôvodu nevieme vytvoriť súbor. Vytvorte manuálne súbor nazvaný %s a nahrajte ho do adresára "_QQ_"installation"_QQ_" vašej inštalácie Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Nebolo možné vytvoriť súbor. Vytvorte manuálne súbor nazvaný "_QQ_"%s"_QQ_" a nahrajte ho do adresára "_QQ_"installation"_QQ_" vašej inštalácie Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Aby ste potvrdili vlastníctvo webhostingu vymažte, prosím, súbor "_QQ_"%s"_QQ_", ktorý sme práve vytvorili v priečinku "_QQ_"installation"_QQ_" vo vašej Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Chcete použiť hosting databázy, ktorý nie je na vašom lokálnom serveri. Z bezpečnostných dôvodov musíte overiť vlastníctvo vášho účtu k webhostingu. Pre viac informácií si prečítajte dokumentáciu." INSTL_DATABASE_NAME_DESC="Niektoré hostingové spoločnosti umožňujú vytvorenie len niekoľkých databáz na serveri. V takomto prípade môžete použiť predponu tabuľky, čím odlíšite rôzne weby." INSTL_DATABASE_NAME_LABEL="Názov databázy" INSTL_DATABASE_NO_SCHEMA="Pre tento typ databázy neexistuje schéma databázy." diff --git a/installation/language/sl-SI/sl-SI.ini b/installation/language/sl-SI/sl-SI.ini index 3b4f496347659..d4a4f5d44188d 100644 --- a/installation/language/sl-SI/sl-SI.ini +++ b/installation/language/sl-SI/sl-SI.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="Nastavitev baze podatkov" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL poizvedba zbirke podatkov ni uspela." INSTL_DATABASE_HOST_DESC="To je običajno "_QQ_"localhost"_QQ_" ali ime vašega gostitelja." INSTL_DATABASE_HOST_LABEL="Ime gostitelja" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Želite uporabljati zbirko podatkov, ki ni lokalna (localhost). Preveriti morate lastništvo računa gostovanja, ki ga uporabljate. Prosimo, glejte tukaj [docspagelink] za več informacij." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Za potrditev, da upravljate z računom tega gostovanja, izbrišite datoteko %s, ki smo samo ustvarili v mapi "_QQ_"namestitev"_QQ_" v vaši Joomli." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Iz neznanega razloga nismo mogli ustvariti datoteke. Prosim ročno ustvarite datoteko z imenom %s in jo naložite v mapo "_QQ_"namestitev"_QQ_" v vaši Joomli." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Za potrditev, da ste lastnik te spletne strani, izbrišite datoteko %s, ki smo samo ustvarili v mapi "_QQ_"namestitev"_QQ_" v vaši Joomli." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Želite uporabljati strežnik zbirke podatkov, ki ni v lokalnem strežniku. Zaradi varnostnih razlogov, morate preveriti lastništvo računa vašeg gostovanje. Prosimo, preberite dokumentacijo za več informacij." INSTL_DATABASE_NAME_DESC="Nekateri gostitelji omogočajo le določeno DB ime na stran. Uporaba predpone tabele v tem primeru za izrazito Joomla! strani." INSTL_DATABASE_NAME_LABEL="Ime baze podatkov" INSTL_DATABASE_NO_SCHEMA="Ne obstaja baza shema za ta tip baze podatkov." diff --git a/installation/language/sr-RS/sr-RS.ini b/installation/language/sr-RS/sr-RS.ini index ee9acbcf40ea3..6be65e322913e 100644 --- a/installation/language/sr-RS/sr-RS.ini +++ b/installation/language/sr-RS/sr-RS.ini @@ -30,6 +30,9 @@ INSTL_PRECHECK_ACTUAL="Тренутно" INSTL_DATABASE="Конфигурација базе података" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL упит није успео." INSTL_DATABASE_HOST_DESC="Уобичајено је "localhost"" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Не могу аутоматски да креирам датотеку. Креирајте ручно датотеку "%s" и ископирајте је у инсталациони директоријум "installation" вашег Joomla сајта." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Да бисте доказали да сте власник овог сајта, молим вас да обришете датотеку "%s" креирану у "installation" директоријуму вашег Joomla сајта." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Ви покушавате да користите базу података која није на вашем локалном серверу. Због безбедности, морате потврдити да сте власник вашег хостинг налога.За више информација прочитајте документацију." INSTL_DATABASE_HOST_LABEL="Име сервера" INSTL_DATABASE_NAME_DESC="Неки хостови дозвољавају само одређена DB имена. Користите префикс табеле за различите Joomla! сајтове." INSTL_DATABASE_NAME_LABEL="Назив базе података" diff --git a/installation/language/sr-RS/sr-RS.xml b/installation/language/sr-RS/sr-RS.xml index 546bd76d0d1bb..53f677722c035 100644 --- a/installation/language/sr-RS/sr-RS.xml +++ b/installation/language/sr-RS/sr-RS.xml @@ -3,8 +3,8 @@ version="3.7" client="installation"> Serbian Cyrillic - 3.7.3 - 2017 + 3.7.4 + July 2017 joomla-serbia.com Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt diff --git a/installation/language/sr-YU/sr-YU.ini b/installation/language/sr-YU/sr-YU.ini index c0d675f3417dc..0dfb0817a0c0e 100644 --- a/installation/language/sr-YU/sr-YU.ini +++ b/installation/language/sr-YU/sr-YU.ini @@ -30,6 +30,9 @@ INSTL_PRECHECK_ACTUAL="Trenutno" INSTL_DATABASE="Konfiguracija baze podataka" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL upit nije uspeo." INSTL_DATABASE_HOST_DESC="Uobičajeno je "localhost"" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Ne mogu automatski da kreiram datoteku. Kreirajte ručno datoteku "%s" i iskopirajte je u instalacioni direktorijum "installation" vašeg Joomla sajta." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Da biste dokazali da ste vlasnik ovog sajta, molim vas da obrišete datoteku "%s" kreiranu u "installation" direktorijumu vašeg Joomla sajta." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Vi pokušavate da koristite bazu podataka koja nije na vašem lokalnom serveru. Zbog bezbednosti, morate potvrditi da ste vlasnik vašeg hosting naloga.Za više informacija pročitajte dokumentaciju." INSTL_DATABASE_HOST_LABEL="Ime servera" INSTL_DATABASE_NAME_DESC="Neki hostovi dozvoljavaju samo određena DB imena. Koristite prefiks tabele za različite Joomla! sajtove." INSTL_DATABASE_NAME_LABEL="Naziv baze podataka" diff --git a/installation/language/sr-YU/sr-YU.xml b/installation/language/sr-YU/sr-YU.xml index ba0406ae260ee..66af3972a8a82 100644 --- a/installation/language/sr-YU/sr-YU.xml +++ b/installation/language/sr-YU/sr-YU.xml @@ -3,8 +3,8 @@ version="3.7" client="installation"> Serbian Latin - 3.7.3 - 2017 + 3.7.4 + July 2017 joomla-serbia.com Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt diff --git a/installation/language/sw-KE/sw-KE.ini b/installation/language/sw-KE/sw-KE.ini index 299eeb30b50f1..ac8f8061d01e3 100644 --- a/installation/language/sw-KE/sw-KE.ini +++ b/installation/language/sw-KE/sw-KE.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="Usanidi wa hifadhidata" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="Swali la hifadhidata la PostgreSQL limeshindwa." INSTL_DATABASE_HOST_DESC="Kwa kawaida, hii ni "localhost" au jina lililopeanwa na hosti yako." INSTL_DATABASE_HOST_LABEL="Jina la hosti" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Unataka kutumia hosti ya hifadhidata ambayo siyo localhost. Kwa sababu ya usalama, unatakiwa kuthibitisha kuwa akaunti inayotumika ni akaunti yako ya hosti ya mtandao. Tafadhali angalia hapa [docspagelink] kwa maelezo zaidi." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Kwa kudhbitisha kuwa hosti hii ya mtandao ni yako, tafadhali futa faili %s, tulioitengeza katika folda ya Joomla "installation"." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Kwa sababu fulani, hatuwezi kutengeza faili. Tafadhali tengeza kwa mkono faili inayoitwa %s na pakia katika folda ya Joomla "installation"." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Hatuwezi kutengeza faili. Tafadhali tengeza kwa mkono faili inayoitwa "%s" na pakia katika folda ya "installation" ya tovuti yako ya Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Kwa kuthibitisha kuwa tovuti hii ni yako, tafadhali futa faili inayoitwa "%s" tulioitengeza katika folda ya "installation" ya tovuti yako ya Joomla." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Unataka kutumia hosti ya hifadhidata ambayo haiko kwa seva yako ya karibu. Kwa sababu ya usalama, unatakiwa kuthibitisha kuwa akaunti inayotumika ni akaunti yako ya hosti ya tovuti. Tafadhali angalia mwongozo kwa maelezo zaidi." INSTL_DATABASE_NAME_DESC="Baadhi ya hosti zinaruhusu jina mmoja la hifadhidata pekee kwa tovuti moja. Katika hali hii, tumia prefix ya jedwali kwa tovuti tofauti za Joomla!" INSTL_DATABASE_NAME_LABEL="Jina la hifadhidata" INSTL_DATABASE_NO_SCHEMA="Hakuna muundo wa hifadhidata wa aina hii kwa hifadhidata." diff --git a/installation/language/ta-IN/ta-IN.ini b/installation/language/ta-IN/ta-IN.ini index c14af65c8b5cc..137c962b82716 100644 --- a/installation/language/ta-IN/ta-IN.ini +++ b/installation/language/ta-IN/ta-IN.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="தரவுத்தள உருவாக்கம்" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL தரவுத்தள வினவல் (query) தோல்வியுற்றது." INSTL_DATABASE_HOST_DESC="புரவலர் கணினிப் பெயர் (Host name) ஆனது பொதுவாக "localhost" அல்லது தங்கள் சேவை வழங்குபவர்-ஆல் (Host service provider) வழங்கப்படும் ஒரு பெயர் ஆகும்." INSTL_DATABASE_HOST_LABEL="புரவலர் கணினி பெயர்" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="தாங்கள் localhost அல்லாத வேறு ஒரு தரவுத்தளப் புரவலர் கணினியைப் (database host name) பயன்படுத்த விரும்புகிறீர்கள். பாதுகாப்புக் காரணத்திற்காக, பயன்படுத்தப்படும் இணையசேவையின் சேவைக்கணக்கின் (webhosting account) உரிமையைத் (ownership) தாங்கள் உறுதிப்படுத்த வேண்டும். மேலும் விவரங்களுக்கு, காண்க: [docspagelink]." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="தாங்கள் இந்த இணையசேவைக்கு (webhost) உரிமையாளர் என்பதனை உறுதிசெய்ய தங்கள் Joomla-வின் "installation" கோப்பகத்தில் நாங்கள் தற்போது உருவாக்கியுள்ள %s கோப்பைத் தயவுசெய்து நீக்குக." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="ஏதோ ஒரு காரணத்தினால் கோப்பை உருவாக்க முடியவில்லை. தயவுசெய்து %s என்ற பெயருடைய ஒரு கோப்பைக் கைமுறையாக உருவாக்கி அதனைத் தங்கள் Joomla-வின் "installation" கோப்பகத்தில் பதிவேற்றுக." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="எங்களால் கோப்பை உருவாக்க முடியவில்லை. தயவுசெய்து "%s" என்ற பெயருடைய ஒரு கோப்பைக் கைமுறையாக உருவாக்கி அதனைத் தங்கள் Joomla தளத்தின் "installation" கோப்பகத்தில் பதிவேற்றுக." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="தாங்கள் இந்த இணையதளத்துக்கான (website) உரிமையாளர் என்பதனை உறுதிசெய்ய தங்கள் Joomla தளத்தின் "installation" கோப்பகத்தில் நாங்கள் தற்போது உருவாக்கியுள்ள "%s" என்ற பெயருடைய கோப்பைத் தயவுசெய்து நீக்குக." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="தாங்கள் உள்ளக (local) சேவையகத்தில் (server) அல்லாத வேறு ஒரு தரவுத்தளப் புரவலர் கணினியைப் (database host) பயன்படுத்த முயற்சிக்கிறீர்கள். பாதுகாப்புக் காரணங்களுக்காக, பயன்படுத்தப்படும் இணையசேவையின் சேவைக்கணக்கின் (webhosting account) உரிமையைத் (ownership) தாங்கள் உறுதிப்படுத்த வேண்டும். மேலும் விவரங்களுக்கு, தயவுசெய்து ஆவணத்தைப் படிக்கவும்." INSTL_DATABASE_NAME_DESC="சில சேவை வழங்குபவர்கள் ஒரு சேவைக்கணக்குக்கு ஒரு குறிப்பிட்ட தரவுத்தள பெயரை மட்டும் அனுமதிப்பார்கள். இவ்வாறு இருப்பின், ஒன்றுக்கு மேற்பட்ட Joomla தளத்தை வேறுபடுத்த அட்டவணை முன்-ஒட்டைப் (Table Prefix) பயன்படுத்தவும்." INSTL_DATABASE_NAME_LABEL="தரவுத்தள பெயர்" INSTL_DATABASE_NO_SCHEMA="இந்த தரவுத்தள வகைக்கு, அமைப்புமுறைகள் (schema) இல்லை." @@ -244,7 +244,7 @@ INSTL_FTP_NOSYST="செயற்கூறு "_QQ_"SYST"_QQ_" தோல்வ INSTL_FTP_UNABLE_DETECT_ROOT_FOLDER="FTP வேர்க் கோப்பகத்தைத் தன்னியக்கமாகக் கண்டுபிடிக்க முடியவில்லை." ;others -INSTL_CONFPROBLEM="தங்கள் உருவாக்கக் (configuration) கோப்பு அல்லது கோப்பகம் எழுத முடியாதது அல்லது கோப்பை எழுதுவதில் பிரச்சினை உள்ளது. தாங்கள் கீழ்க்காணும் குறிமுறையைக் கையால் பதிவேற்ற வேண்டும். அனைத்துக் குறிமுறைகளையும் உரைப் பிரதேசத்தில் தேர்வுசெய்க. பிறகு, புதிய உரைக் கோப்பில் தேர்வுசெய்தக் குறிமுறையை ஒட்டுக. இந்த உரைக் கோப்பை "configuration.php" எனப் பெயருடையு அதனைத் தங்கள் தளத்தின் வேர்க் கோப்பகத்தில் பதிவேற்றுக." +INSTL_CONFPROBLEM="தங்கள் உருவாக்கக் (configuration) கோப்பு அல்லது கோப்பகம் எழுத முடியாதது அல்லது கோப்பை எழுதுவதில் பிரச்சினை உள்ளது. தாங்கள் கீழ்க்காணும் குறிமுறையைக் கையால் பதிவேற்ற வேண்டும். அனைத்துக் குறிமுறைகளையும் உரைப் பிரதேசத்தில் தேர்வுசெய்க. பிறகு, புதிய உரைக் கோப்பில் தேர்வுசெய்தக் குறிமுறையை ஒட்டுக. இந்த உரைக் கோப்பை "configuration.php" எனப் பெயரிட்டு அதனைத் தங்கள் தளத்தின் வேர்க் கோப்பகத்தில் பதிவேற்றுக." INSTL_DATABASE_SUPPORT="தரவுத்தள ஆதரவு:" INSTL_DISPLAY_ERRORS="Display Errors" INSTL_ERROR_DB="தரவுத்தளம் "%s"ஐ நிரப்ப முயற்சிக்கும்போது சில பிழைகள் ஏற்பட்டுள்ளன" @@ -260,7 +260,7 @@ INSTL_MCRYPT_SUPPORT_AVAILABLE="Mcrypt Support" INSTL_NOTICEMBLANGNOTDEFAULT="PHP mbstring language நடு நிலையாக (neutral) அமைக்கப்படவில்லை. இதனைத் தங்கள் தளத்தில் php_value mbstring.language neutral என்ற சொற்றொடரைத் தங்கள் .htaccess கோப்பில் எழுதுவதின் மூலம் அமைக்க (locally set) முடியும்." INSTL_NOTICEMBSTRINGOVERLOAD="PHP mbstring function overload அமைக்கப்பட்டுள்ளது. இதனைத் தங்கள் தளத்தில் php_value mbstring.func_overload 0 என்ற சொற்றொடரைத் தங்கள் .htaccess கோப்பில் எழுதுவதின் மூலம் நிறுத்த முடியும் (turned off locally)." INSTL_NOTICEMCRYPTNOTAVAILABLE="எச்சரிக்கை! PHP mcrypt நீட்சியானது நிறுவப்பட அல்லது இயலுமைப்படுத்தப்பட வேண்டும். இது இல்லாமல், Joomla!-வின் சில அம்சங்கள் கிடைக்காது." -INSTL_NOTICEYOUCANSTILLINSTALL="
      உருவாக்க அமைப்புகள் (Configuration Settings) இறுதியில் காட்டப்படுமாதலால், தாங்கள் நிறுவலைத் தொடரலாம். தாங்கள் குறிமுறையைத் (code) தாங்களாகவே பதிவேற்ற வேண்டும். உரைப் பிரதேசத்தில் அனைத்துக் குறிமுறைகளையும் தேர்வுசெய்து, புதிய உரைக் கோப்பில் தேர்வுசெய்தக் குறிமுறையை ஒட்டுக. இந்த உரைக் கோப்பை "configuration.php" எனப் பெயருடையு அதனைத் தங்கள் தள வேர்க் (root) கோப்பகத்தில் பதிவேற்றுக." +INSTL_NOTICEYOUCANSTILLINSTALL="
      உருவாக்க அமைப்புகள் (Configuration Settings) இறுதியில் காட்டப்படுமாதலால், தாங்கள் நிறுவலைத் தொடரலாம். தாங்கள் குறிமுறையைத் (code) தாங்களாகவே பதிவேற்ற வேண்டும். உரைப் பிரதேசத்தில் அனைத்துக் குறிமுறைகளையும் தேர்வுசெய்து, புதிய உரைக் கோப்பில் தேர்வுசெய்தக் குறிமுறையை ஒட்டுக. இந்த உரைக் கோப்பை "configuration.php" எனப் பெயரிட்டு அதனைத் தங்கள் தள வேர்க் (root) கோப்பகத்தில் பதிவேற்றுக." INSTL_OUTPUT_BUFFERING="Output Buffering" INSTL_PARSE_INI_FILE_AVAILABLE="INI Parser Support" INSTL_PHP_VERSION="PHP Version" diff --git a/installation/language/th-TH/th-TH.ini b/installation/language/th-TH/th-TH.ini index f733b15ee35c3..d0f4e24de4b94 100644 --- a/installation/language/th-TH/th-TH.ini +++ b/installation/language/th-TH/th-TH.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="การตั้งค่าฐานข้อมูล" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="การคิวรีฐานข้อมูล PostgreSQL ล้มเหลว" INSTL_DATABASE_HOST_DESC="ซึ่งโดยปกติจะเป็น "_QQ_"localhost"_QQ_" หรือชื่อที่โฮสต์ของคุณกำหนดไว้" INSTL_DATABASE_HOST_LABEL="ชื่อโฮส" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="คุณต้องการใช้โฮสต์ฐานข้อมูลที่ไม่ใช่ localhost เพื่อความปลอดภัยคุณจำเป็นต้องยืนยันการเป็นเจ้าของบัญชีเว็บโฮสติ้งที่ใช้อยู่ โปรดดูที่นี่ [docspagelink] สำหรับข้อมูลเพิ่มเติม" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="เพื่อยืนยันว่าคุณเป็นเจ้าของเว็บโฮสต์นี้โปรดลบไฟล์ %s ที่ได้สร้างไว้ในโฟลเดอร์ "installation" ของ Joomla ของคุณ" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="ด้วยเหตุผลบางอย่างที่ไม่สามารถสร้างไฟล์ได้ โปรดสร้างไฟล์ที่ชื่อว่า %s ด้วยตนเองและอัพโหลดไปที่โฟลเดอร์ "installation" ของ Joomla ของคุณ" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="ด้วยเหตุผลบางอย่างที่ไม่สามารถสร้างไฟล์ได้ โปรดสร้างไฟล์ที่ชื่อว่า "%s" ด้วยตนเองและอัพโหลดไปที่โฟลเดอร์ "installation" ของ Joomla ไซต์ของคุณ" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="เพื่อยืนยันว่าคุณเป็นเจ้าของเว็บโฮสต์นี้โปรดลบไฟล์ชื่อ "%s" ที่ได้สร้างไว้ในโฟลเดอร์ "installation" ของ Joomla ไซต์ของคุณ" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="คุณต้องการใช้โฮสต์ฐานข้อมูลที่ไม่ใช่เซิร์ฟเวอร์ภายในของคุณ เพื่อความปลอดภัยคุณจำเป็นต้องยืนยันการเป็นเจ้าของบัญชีเว็บโฮสติ้งที่ใช้อยู่ โปรดอ่านเอกสารประกอบ สำหรับข้อมูลเพิ่มเติม" INSTL_DATABASE_NAME_DESC="หากคุณมีฐานข้อมูลเดียว คุณสามารถใช้คำนำหน้าตารางให้ต่างจากเดิมได้" INSTL_DATABASE_NAME_LABEL="ชื่อฐานข้อมูล" INSTL_DATABASE_NO_SCHEMA="ไม่มีโครงร่างที่ได้จากการออกแบบฐานข้อมูล (Database Schema) ในฐานข้อมูลชนิดนี้" From a4773e4dbe34df134d3090d5c2eea71770138981 Mon Sep 17 00:00:00 2001 From: Thomas Hunziker Date: Fri, 21 Jul 2017 09:15:32 +0200 Subject: [PATCH 031/148] Updated es-CO --- installation/language/es-CO/es-CO.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installation/language/es-CO/es-CO.ini b/installation/language/es-CO/es-CO.ini index 753b1ac0cb6c6..65215a9316c12 100644 --- a/installation/language/es-CO/es-CO.ini +++ b/installation/language/es-CO/es-CO.ini @@ -31,9 +31,9 @@ INSTL_DATABASE="Configuración de base de datos" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="Falló la consulta a la base de datos PostgreSQL" INSTL_DATABASE_HOST_DESC="Normalmente "_QQ_"localhost"_QQ_" o un nombre proporcionado por el administrador de su servidor." INSTL_DATABASE_HOST_LABEL="Nombre del servidor" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Usted desea utilizar un servidor de base de datos que no es localhost. Por seguridad debe verificar que tiene permisos o es el dueño de dicha cuenta de hosting. Revise [docspagelink] para más información." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Para confirmar que es el dueño de dicha cuenta de hosting, por favor borre el archivo %s que acaba de ser creado en la carpeta "installation" de su sitio web Joomla!." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Por alguna razón no pudo ser creado el archivo. Por favor cree un archivo llamado % y súbalo a la carpeta "installation" de su sitio web Joomla!." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="No se pudo crear el archivo. Por favor cree un archivo llamado "%" y súbalo a la carpeta "installation" de su sitio web Joomla!." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Para confirmar que es el dueño de este sitio web, por favor borre el archivo "%s" que acaba de ser creado en la carpeta "installation" de su sitio web Joomla!." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Usted desea utilizar un servidor de base de datos que no está en su servidor local. Por seguridad debe verificar que tiene permisos o que es el dueño de dicha cuenta de hosting. Revise la documentación para más información." INSTL_DATABASE_NAME_DESC="Algunos servidores solo permiten un nombre específico de base de datos. Utilice el prefijo de tabla en este caso para instalar varios sitios Joomla." INSTL_DATABASE_NAME_LABEL="Nombre de la base de datos" INSTL_DATABASE_NO_SCHEMA="No existe esquema de base de datos para este tipo de base de datos." From 3fffe1a2c6430538ec6ae63d2ba6b23e1f05a2e3 Mon Sep 17 00:00:00 2001 From: Thomas Hunziker Date: Mon, 24 Jul 2017 14:55:21 +0200 Subject: [PATCH 032/148] Updated korean installation language (#17224) * Updated korean installation language * Updating nb-NO --- installation/language/ko-KR/ko-KR.ini | 2 +- installation/language/nb-NO/nb-NO.ini | 17 ++++++++++------- installation/language/nb-NO/nb-NO.xml | 6 +++--- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/installation/language/ko-KR/ko-KR.ini b/installation/language/ko-KR/ko-KR.ini index ca9030d10326d..b43594a4d22c3 100644 --- a/installation/language/ko-KR/ko-KR.ini +++ b/installation/language/ko-KR/ko-KR.ini @@ -32,7 +32,7 @@ INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL 데이터베이스 질의가 INSTL_DATABASE_HOST_DESC="일반적으로 "localhost" 혹은 호스트에서 제시된 이름입니다." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="어떤 이유에서인지 파일을 생성할 수 없습니다. %s 파일을 생성하여 Joomla의 "installation" 폴더에 업로드하세요." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="이 웹 호스트의 소유자임을 확인하려면 Joomla의 "installation" 폴더에 생성된 %s 파일을 삭제하세요." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="로컬호스트가 아닌 데이터베이스를 사용하려 합니다. 보안상의 이유로 사용된 웹호스팅 계정의 소유권을 확인해야 합니다. 자세한 내용은 [docspagelink]를 참고하세요." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="로컬호스트가 아닌 데이터베이스를 사용하려 합니다. 보안상의 이유로 사용된 웹호스팅 계정의 소유권을 확인해야 합니다. 자세한 내용은 문서를 확인하세요." INSTL_DATABASE_HOST_LABEL="Host 이름" INSTL_DATABASE_NAME_DESC="일부 호스트는 사이트별로 특정 DB 이름만 허용합니다. 이 경우 Joomla! 사이트 구분을 위해 테이블 접두사를 사용하세요." INSTL_DATABASE_NAME_LABEL="데이터베이스 이름" diff --git a/installation/language/nb-NO/nb-NO.ini b/installation/language/nb-NO/nb-NO.ini index 40dfbcd36cee1..e8faa3d8927ad 100644 --- a/installation/language/nb-NO/nb-NO.ini +++ b/installation/language/nb-NO/nb-NO.ini @@ -31,6 +31,9 @@ INSTL_DATABASE="Databasekonfigurasjon" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL databasespørring feilet." INSTL_DATABASE_HOST_DESC="Dette er vanligvis 'localhost' eller et navn angitt av deres leverandør av netthotell." INSTL_DATABASE_HOST_LABEL="Tjenernavn" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Filen kunne ikke opprettes. Du må manuelt opprette en fil med navn '%s', for så å laste denne opp til 'installation'-mappen for deres nettsted." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="For å bekrefte at du er eieren av dette nettstedet må du slette filen '%s', som har blitt opprettet i 'installation'-mappen for deres nettsted." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Du forsøker å bruke en databasetjener som ikke er på deres lokale server. Av sikkerhetshensyn må du bekrefte eierskap for netttjenerkontoen. Les dokumentasjonen for mer informasjon." INSTL_DATABASE_NAME_DESC="Noen netthotell tillater kun et gitt antall databasenavn per nettsted. Bruk tabellprefiks i slike tilfeller for å skille Joomla-installasjonene." INSTL_DATABASE_NAME_LABEL="Databasenavn" INSTL_DATABASE_NO_SCHEMA="Ingen databaseskjema eksisterer for denne databasetypen." @@ -120,19 +123,19 @@ INSTL_EMAIL_NOT_SENT="E-post kunne ikke sendes." ;Complete view INSTL_COMPLETE_ADMINISTRATION_LOGIN_DETAILS="Innloggingsdetaljer for administrasjonspanelet" ; The word 'installation' should not be translated as it is a physical folder. -INSTL_COMPLETE_ERROR_FOLDER_ALREADY_REMOVED="Installasjonsmappen er allerede slettet." +INSTL_COMPLETE_ERROR_FOLDER_ALREADY_REMOVED="Mappen 'installation' er allerede slettet." ; The word 'installation' should not be translated as it is a physical folder. -INSTL_COMPLETE_ERROR_FOLDER_DELETE="Installasjonsmappen kunne ikke slettes, du må slette denne manuelt." +INSTL_COMPLETE_ERROR_FOLDER_DELETE="Mappen 'installation' kunne ikke slettes, du må slette denne manuelt." ; The word 'installation' should not be translated as it is a physical folder. -INSTL_COMPLETE_FOLDER_REMOVED="Installasjonsmappen ble slettet" -INSTL_COMPLETE_LANGUAGE_1="Joomla! i ditt eget språk?" +INSTL_COMPLETE_FOLDER_REMOVED="Mappen 'installation' ble slettet" +INSTL_COMPLETE_LANGUAGE_1="Joomla i ditt eget språk, og/eller automatisk grunnleggende flerspråklig sideopprettelse" ; The word 'installation' should not be translated as it is a physical folder. -INSTL_COMPLETE_LANGUAGE_DESC="Før du sletter installasjonsmappen kan du installere ekstra språk. Klikk følgende knapp dersom du ønsker å legge til ekstra språk for Joomla-installasjonen." +INSTL_COMPLETE_LANGUAGE_DESC="Før du sletter mappen 'installation' kan du installere ekstra språk. Klikk følgende knapp dersom du ønsker å legge til ekstra språk for Joomla-installasjonen." INSTL_COMPLETE_LANGUAGE_DESC2="Merk: Installasjonsskriptet vil behøve tilgang til Internett for å kunne laste ned og installere flere språk.
      Noen serverkonfigurasjoner sperrer dessverre for dette. Dersom dette er tilfellet for deg er det ingen fare, du vil kunne installere flere språk senere via administrasjonspanelet." ; The word 'installation' should not be translated as it is a physical folder. -INSTL_COMPLETE_REMOVE_FOLDER="Slett installasjonsmappen" +INSTL_COMPLETE_REMOVE_FOLDER="Slett mappen 'installation'" ; The word 'installation' should not be translated as it is a physical folder. -INSTL_COMPLETE_REMOVE_INSTALLATION="HUSK Å SLETTE INSTALLASJONSMAPPEN
      Du vil ikke kunne bruke nettstedet før installasjonsmappen er slettet. Dette er en sikkerhetsfunksjon for Joomla!." +INSTL_COMPLETE_REMOVE_INSTALLATION="HUSK Å SLETTE INSTALLASJONSMAPPEN
      Du vil ikke kunne bruke nettstedet før mappen 'installation' er slettet. Dette er en sikkerhetsfunksjon for Joomla." INSTL_COMPLETE_TITLE="Gratulerer! Joomla! er nå installert." INSTL_COMPLETE_INSTALL_LANGUAGES="Ekstra steg: Installer språk" diff --git a/installation/language/nb-NO/nb-NO.xml b/installation/language/nb-NO/nb-NO.xml index 7eb4828c468d1..82516dfe81ef7 100644 --- a/installation/language/nb-NO/nb-NO.xml +++ b/installation/language/nb-NO/nb-NO.xml @@ -2,9 +2,9 @@ - Norwegian bokmål (Norway) - 3.7.3 - June 2017 + Norwegian Bokmal (Norway) + 3.7.4 + July 2017 Joomla! Project Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt From fecd219f327ad29b53b4da4ef368ce2c911cb02b Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Mon, 24 Jul 2017 08:09:56 -0500 Subject: [PATCH 033/148] Update Travis config (#17228) --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index af660cf1310dc..82e8f2ab16873 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,10 +17,14 @@ matrix: env: INSTALL_APCU="yes" INSTALL_MEMCACHE="no" - php: 7.1 env: INSTALL_APCU="yes" INSTALL_MEMCACHE="no" + # Requires older Precise image - php: 5.3 env: INSTALL_APC="yes" + sudo: true + dist: precise + # The new Trusty image has issues with running APC, do not enable it here - php: 5.4 - env: INSTALL_APC="yes" + env: INSTALL_APC="no" - php: 5.5 env: INSTALL_APCU="yes" - php: 5.6 From 84700138c771d500e4d5f43a45d373b0cb796d6d Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:16:12 +0200 Subject: [PATCH 034/148] Update de-AT.ini --- installation/language/de-AT/de-AT.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/de-AT/de-AT.ini b/installation/language/de-AT/de-AT.ini index c2b5d42af58ed..2d292829f4f06 100644 --- a/installation/language/de-AT/de-AT.ini +++ b/installation/language/de-AT/de-AT.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Konfiguration der Datenbank" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL-Datenbankabfrage fehlgeschlagen." INSTL_DATABASE_HOST_DESC="Üblicherweise ist dies „localhost“ oder ein vorgegebener Name des Webhosters." INSTL_DATABASE_HOST_LABEL="Servername" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier [docspagelink] gefunden werden." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier docs.joomla.org gefunden werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Um die Eigentümerschaft zu bestätigen muss die Datei „%s“, die soeben im „installation“-Verzeichnis von Joomla! erstellt wurde, wieder gelöscht werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Aufgrund eines unbekannten Fehlers kann die Datei nicht automatisch erstellt werden. Daher ist die Datei mit dem Namen „%s“ manuell zu erstellen und in das Verzeichnis „installation“ hochzuladen." INSTL_DATABASE_NAME_DESC="Einige Webhoster erlauben nur eine Datenbank pro Website. In diesem Fall sollte ein eindeutiger Tabellenpräfix für Joomla! gewählt werden." From bab3f8f2d56da5a6657045b9ad703648999a8ddb Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:16:36 +0200 Subject: [PATCH 035/148] Update de-CH.ini --- installation/language/de-CH/de-CH.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/de-CH/de-CH.ini b/installation/language/de-CH/de-CH.ini index b1bbd7a678f46..a3e50dc9130cf 100644 --- a/installation/language/de-CH/de-CH.ini +++ b/installation/language/de-CH/de-CH.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Konfiguration der Datenbank" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL-Datenbankabfrage fehlgeschlagen." INSTL_DATABASE_HOST_DESC="Üblicherweise ist dies „localhost“ oder ein vorgegebener Name des Webhosters." INSTL_DATABASE_HOST_LABEL="Servername" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier [docspagelink] gefunden werden." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier docs.joomla.org gefunden werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Um die Eigentümerschaft zu bestätigen muss die Datei „%s“, die soeben im „installation“-Verzeichnis von Joomla! erstellt wurde, wieder gelöscht werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Aufgrund eines unbekannten Fehlers kann die Datei nicht automatisch erstellt werden. Daher ist die Datei mit dem Namen „%s“ manuell zu erstellen und in das Verzeichnis „installation“ hochzuladen." INSTL_DATABASE_NAME_DESC="Einige Webhoster erlauben nur eine Datenbank pro Website. In diesem Fall sollte ein eindeutiger Tabellenpräfix für Joomla! gewählt werden." From 9f79eab4a8e8340d2f38988ae858288fdfed629e Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:17:12 +0200 Subject: [PATCH 036/148] Update de-DE.ini --- installation/language/de-DE/de-DE.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/de-DE/de-DE.ini b/installation/language/de-DE/de-DE.ini index 55ddb8ce5b42f..2863eb5148ff0 100644 --- a/installation/language/de-DE/de-DE.ini +++ b/installation/language/de-DE/de-DE.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Konfiguration der Datenbank" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL-Datenbankabfrage fehlgeschlagen." INSTL_DATABASE_HOST_DESC="Üblicherweise ist dies „localhost“ oder ein vorgegebener Name des Webhosters." INSTL_DATABASE_HOST_LABEL="Servername" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier [docspagelink] gefunden werden." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier docs.joomla.org gefunden werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Um die Eigentümerschaft zu bestätigen muss die Datei „%s“, die soeben im „installation“-Verzeichnis von Joomla! erstellt wurde, wieder gelöscht werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Aufgrund eines unbekannten Fehlers kann die Datei nicht automatisch erstellt werden. Daher ist die Datei mit dem Namen „%s“ manuell zu erstellen und in das Verzeichnis „installation“ hochzuladen." INSTL_DATABASE_NAME_DESC="Einige Webhoster erlauben nur eine Datenbank pro Website. In diesem Fall sollte ein eindeutiger Tabellenpräfix für Joomla! gewählt werden." From 2dd462d8e8bdaeeabae68c12d04da274499a9969 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:17:44 +0200 Subject: [PATCH 037/148] Update de-LI.ini --- installation/language/de-LI/de-LI.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/de-LI/de-LI.ini b/installation/language/de-LI/de-LI.ini index 3e170e92b011b..80411210e7aa0 100644 --- a/installation/language/de-LI/de-LI.ini +++ b/installation/language/de-LI/de-LI.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Konfiguration der Datenbank" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL-Datenbankabfrage fehlgeschlagen." INSTL_DATABASE_HOST_DESC="Üblicherweise ist dies „localhost“ oder ein vorgegebener Name des Webhosters." INSTL_DATABASE_HOST_LABEL="Servername" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier [docspagelink] gefunden werden." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier docs.joomla.org gefunden werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Um die Eigentümerschaft zu bestätigen muss die Datei „%s“, die soeben im „installation“-Verzeichnis von Joomla! erstellt wurde, wieder gelöscht werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Aufgrund eines unbekannten Fehlers kann die Datei nicht automatisch erstellt werden. Daher ist die Datei mit dem Namen „%s“ manuell zu erstellen und in das Verzeichnis „installation“ hochzuladen." INSTL_DATABASE_NAME_DESC="Einige Webhoster erlauben nur eine Datenbank pro Website. In diesem Fall sollte ein eindeutiger Tabellenpräfix für Joomla! gewählt werden." From 63b7fd10aff9b77ed38e4e987c580e7e1cedcead Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:18:14 +0200 Subject: [PATCH 038/148] Update de-LU.ini --- installation/language/de-LU/de-LU.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/de-LU/de-LU.ini b/installation/language/de-LU/de-LU.ini index 04ebe98ed3589..d4397853df15d 100644 --- a/installation/language/de-LU/de-LU.ini +++ b/installation/language/de-LU/de-LU.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Konfiguration der Datenbank" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL-Datenbankabfrage fehlgeschlagen." INSTL_DATABASE_HOST_DESC="Üblicherweise ist dies „localhost“ oder ein vorgegebener Name des Webhosters." INSTL_DATABASE_HOST_LABEL="Servername" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier [docspagelink] gefunden werden." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Es soll ein anderer Datenbankserver als „localhost“ verwendet werden. Aus Sicherheitsgründen muss die Eigentümerschaft des Webhostings überprüft werden. Weitere Informationen dazu können hier docs.joomla.org gefunden werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Um die Eigentümerschaft zu bestätigen muss die Datei „%s“, die soeben im „installation“-Verzeichnis von Joomla! erstellt wurde, wieder gelöscht werden." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Aufgrund eines unbekannten Fehlers kann die Datei nicht automatisch erstellt werden. Daher ist die Datei mit dem Namen „%s“ manuell zu erstellen und in das Verzeichnis „installation“ hochzuladen." INSTL_DATABASE_NAME_DESC="Einige Webhoster erlauben nur eine Datenbank pro Website. In diesem Fall sollte ein eindeutiger Tabellenpräfix für Joomla! gewählt werden." From 1604e227c37c270012711f261b9e6fd97e4bfc21 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:18:54 +0200 Subject: [PATCH 039/148] Update eu-ES.ini --- installation/language/eu-ES/eu-ES.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/eu-ES/eu-ES.ini b/installation/language/eu-ES/eu-ES.ini index 33902524b4548..3444c58ec85a0 100644 --- a/installation/language/eu-ES/eu-ES.ini +++ b/installation/language/eu-ES/eu-ES.ini @@ -30,7 +30,7 @@ INSTL_PRECHECK_ACTUAL="Benetakoa" INSTL_DATABASE="Datu-basearen konfigurazioa" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL datu-basearen kontsultak huts egin du." INSTL_DATABASE_HOST_DESC="Normalean hau izaten da "localhost" edo zure ostalariak emandako izena." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Ostalari lokala ez den ostalari bat erabili nahi duzu zure datu-basearentzat. Segurtasun arrazoiengatik, egiaztatu egin behar duzu web ostalaritza kontuaren jabetza. Ikus hemen [docspagelink] informazio gehiago." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Ostalari lokala ez den ostalari bat erabili nahi duzu zure datu-basearentzat. Segurtasun arrazoiengatik, egiaztatu egin behar duzu web ostalaritza kontuaren jabetza. Ikus hemen docs.joomla.org informazio gehiago." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Arrazoiren batengatik ezin dugu fitxategia sortu. Sor ezazu eskuz %s izeneko fitxategia eta jaso ezazu zure Joomlako "installation" karpetara." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Webgune honen jabea zarela egiaztatzeko, ezaba ezazu zure Joomlako "installation" karpetan sortuberri dugun %s izeneko fitxategia" INSTL_DATABASE_HOST_LABEL="Ostalariaren izena" From 00aea4fea8838055754e2062658944a0e46564a1 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:19:40 +0200 Subject: [PATCH 040/148] Update hy-AM.ini --- installation/language/hy-AM/hy-AM.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/hy-AM/hy-AM.ini b/installation/language/hy-AM/hy-AM.ini index 54d2290e709a4..fff0057fe1a10 100644 --- a/installation/language/hy-AM/hy-AM.ini +++ b/installation/language/hy-AM/hy-AM.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="ՏԲ-ի կազմաձևում" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL ՏԲ-ի հարցումը ձախողվեց։" INSTL_DATABASE_HOST_DESC="Սովորաբար՝ "localhost" կամ Ձեր խնամորդի կողմից տրամադրված մեկ այլ անվանում։" INSTL_DATABASE_HOST_LABEL="Խնամորդի անուն" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Դուք ցանկանում եք օգտագործել ՏԲ-ն, որը localhost չէ։ Ելնելով անվտանգության պահանջներից Ձեզ հարկավոր է հաստատել օգտագործվող հոսթինգային հաշվի Ձեր սեփականությունը։ Ավելին իմանալու համար խնդրում ենք այցելել [docspagelink]։" +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Դուք ցանկանում եք օգտագործել ՏԲ-ն, որը localhost չէ։ Ելնելով անվտանգության պահանջներից Ձեզ հարկավոր է հաստատել օգտագործվող հոսթինգային հաշվի Ձեր սեփականությունը։ Ավելին իմանալու համար խնդրում ենք այցելել docs.joomla.org։" INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Տվյալ հոսթինգային հաշվի Ձեր սեփականությունը հաստատելու համար խնդրում ենք ջնջել %s ֆայլը, որը հենց նոր ստեղծվեց Ձեր Joomla-ի "installation" պանակում։" INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Որոշ պատճառներով մենք չենք կարող ստեղծել ֆայլը։ Խնդրում ենք ձեռքով ստեղծել %s ֆայլը և վերբեռնել այն Ձեր Joomla-ի "installation" պանակը։" INSTL_DATABASE_NAME_DESC="Որոշ հոսթինգի մատակարարները տրամադրում են մեկ ՏԲ մի քանի կայքերի համար։ Նման դեպքերում օգտագործեք աղյուսակների նախածանցները՝ Joomla-ի աղյուսակները նույն ՏԲ-ում տարբեկակելու համար։" From 125bb7cb2bbf382fd6c85203d5844219ab88eeaf Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:20:29 +0200 Subject: [PATCH 041/148] Update ka-GE.ini --- installation/language/ka-GE/ka-GE.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/ka-GE/ka-GE.ini b/installation/language/ka-GE/ka-GE.ini index 8548b1a3d8216..57533a0efd462 100644 --- a/installation/language/ka-GE/ka-GE.ini +++ b/installation/language/ka-GE/ka-GE.ini @@ -33,7 +33,7 @@ INSTL_DATABASE_HOST_DESC="როგორც წესი ეს არის &q INSTL_DATABASE_HOST_LABEL="მონაცემთა ბაზის სერვერის სახელი" INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="რაღაც მიზეზის გამო ფაილის შექმნა ვერ მოხერხდა. გთხოვთ ხელით შექმნათ ფაილი სახელით %s და ატვირთოთ თქვენს Joomla! "installation" საქაღალდეში." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="იმის დასადასტურებლად, რომ თქვენ ხართ ამ ვებ-ჰოსტის მფლობელი, გთხოვთ წაშალოთ ფაილი %s, რომელიც ჩვენ შევქმენით ახლახანს თქვენს Joomla! "installation" საქაღალდეში." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="თქვენ გსურთ გამოიყენოთ მონაცემთა ბაზის ჰოსტი, რომელიც არ არის localhost. უსაფრთხოების მიზნით, თქვენ უნდა დაადასტუროთ გამოყენებული ვებ-ჰოსტის ანგარიშის მფლობელობა. დამატებითი ინფორმაცია გთხოვთ იხილოთ აქ [docspagelink]." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="თქვენ გსურთ გამოიყენოთ მონაცემთა ბაზის ჰოსტი, რომელიც არ არის localhost. უსაფრთხოების მიზნით, თქვენ უნდა დაადასტუროთ გამოყენებული ვებ-ჰოსტის ანგარიშის მფლობელობა. დამატებითი ინფორმაცია გთხოვთ იხილოთ აქ docs.joomla.org." INSTL_DATABASE_NAME_DESC="ზოგიერთ ჰოსტზე დაწესებულია შეზღუდვა გამოსაყენებელი მონაცემთა ბაზების რაოდენობაზე. ცხრილის პრეფიქსის გამოყენება საშუალებას იძლევა ერთ მონაცემთა ბაზაში დააყენოთ რამოდენიმე საიტი Joomla!-ზე" INSTL_DATABASE_NAME_LABEL="მონაცემთა ბაზის სახელი" INSTL_DATABASE_NO_SCHEMA="ამ მონაცემთა ბაზის ტიპისთვის მონაცემთა ბაზის სქემა არ არსებობს." From 9d55c9ef91c5612413ce1bb72df3b44e3948b646 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:22:10 +0200 Subject: [PATCH 042/148] Update ca-ES.ini --- installation/language/ca-ES/ca-ES.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/ca-ES/ca-ES.ini b/installation/language/ca-ES/ca-ES.ini index fdcca835731bf..ecce1963cdae1 100644 --- a/installation/language/ca-ES/ca-ES.ini +++ b/installation/language/ca-ES/ca-ES.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Configuració de la Base de Dades" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="Ha fallat la consulta de base de dades PostgreSQL." INSTL_DATABASE_HOST_DESC="Això acostuma a ser "_QQ_"localhost"_QQ_" o un nom proveït pel teu servidor." INSTL_DATABASE_HOST_LABEL="Nom del servidor" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Vols utilitzar un hostatjament de base de dades que no és localhost. Per raons de seguretat, cal verificar la propietat del compte utilitzat. Consulta aquí [docspagelink] per a més informació." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Vols utilitzar un hostatjament de base de dades que no és localhost. Per raons de seguretat, cal verificar la propietat del compte utilitzat. Consulta aquí docs.joomla.org per a més informació." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Per tal de confirmar que ets el propietari d'aquest hostatjament suprimeix el fitxer %s que hem creat a la carpeta "_QQ_"installation"_QQ_" de Joomla." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Per alguna raó no som capaços de crear l'arxiu. Crea manualment un arxiu anomenat %s i puja'l a la carpeta "_QQ_"installation"_QQ_" de Joomla." INSTL_DATABASE_NAME_DESC="Alguns hostatjaments permeten només un nom determinat de BD per lloc. Utilitza un prefix de taula en aquest cas per llocs diversos de Joomla!" From 19f78795ee86cdaf8feca428495c08eb1bb8cb11 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:23:25 +0200 Subject: [PATCH 043/148] Update fa-IR.ini --- installation/language/fa-IR/fa-IR.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/language/fa-IR/fa-IR.ini b/installation/language/fa-IR/fa-IR.ini index 9fc679b942766..f13a1e57dac59 100644 --- a/installation/language/fa-IR/fa-IR.ini +++ b/installation/language/fa-IR/fa-IR.ini @@ -31,7 +31,7 @@ INSTL_PRECHECK_ACTUAL="واقعی" ; Database view INSTL_DATABASE="تنظیمات پایگاه داده" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="جستجوی پایگاه داده PostgreSQL با مشکل روبرو شد." -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="شما می خواهید از یک پایگاه داده میزبان هاست استفاده کنید که محلی نیست. به دلایل امنیتی، شما باید مالکیت حساب کاربری مورد استفاده را تایید کنید. لطفا برای اطلاعات بیشتر [docspagelink] را ببینید." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="شما می خواهید از یک پایگاه داده میزبان هاست استفاده کنید که محلی نیست. به دلایل امنیتی، شما باید مالکیت حساب کاربری مورد استفاده را تایید کنید. لطفا برای اطلاعات بیشتر docs.joomla.org را ببینید." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="به منظور تایید اینکه شما مالکیت این سایت را به عهده دارید لطفا فایل %s را که ما در پوشه "نصب" جوملا قرار داده ایم حذف کنید." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="به دلایلی ما قادر به ایجاد فایل نیستیم. لطفا به صورت دستی یک فایل با نام %s ایجاد و در پوشه "نصب" جوملا آپلود کنید." INSTL_DATABASE_HOST_DESC="این گزینه معمولا "localhost" یا یک نام ارائه شه توسط میزبان است." @@ -353,4 +353,4 @@ JLIB_JS_AJAX_ERROR_CONNECTION_ABORT="خاتمه ناگهانی در اتصال JLIB_JS_AJAX_ERROR_NO_CONTENT="هیچ محتوای بازگردانده نشد." JLIB_JS_AJAX_ERROR_OTHER="خطایی در اتصال با داده های JSON رخ داده است: HTTP %s وضعیت کد." JLIB_JS_AJAX_ERROR_PARSE="خطایی درخصوص پردازش داده های JSON رخ داده است:
      %s" -JLIB_JS_AJAX_ERROR_TIMEOUT="مهلت زمانی برای داده های JSON رخ داده است." \ No newline at end of file +JLIB_JS_AJAX_ERROR_TIMEOUT="مهلت زمانی برای داده های JSON رخ داده است." From 580bca2f7a6a457c1006b0e9bdac6d9971ab7e2a Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:24:19 +0200 Subject: [PATCH 044/148] Update lv-LV.ini --- installation/language/lv-LV/lv-LV.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/lv-LV/lv-LV.ini b/installation/language/lv-LV/lv-LV.ini index 8f1daede49102..75e266cd167c3 100644 --- a/installation/language/lv-LV/lv-LV.ini +++ b/installation/language/lv-LV/lv-LV.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Datu bāzes konfigurācija" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL datu bāzes vaicājums ir neveiksmīgs." INSTL_DATABASE_HOST_DESC="Tas parasti būs "_QQ_"localhost"_QQ_"" INSTL_DATABASE_HOST_LABEL="Servera adrese" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Jūs vēlaties izmantot datu bāzes serveri, kas nav tas pats, kas web lapai. Drošības apsvērumu dēļ, jums ir jāpierāda valdījums pār izmantojamo kontu. Lasiet šeit [docspagelink], lai uzzinātu vairāk." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Jūs vēlaties izmantot datu bāzes serveri, kas nav tas pats, kas web lapai. Drošības apsvērumu dēļ, jums ir jāpierāda valdījums pār izmantojamo kontu. Lasiet šeit docs.joomla.org, lai uzzinātu vairāk." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Lai pierādītu, ka esat šī lietotāja konta īpašnieks, lūdzu izdzēsiet datni %s, kas tikko tika izveidota jūsu Joomla mapē "_QQ_"installation"_QQ_"." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Kaut kādu iemeslu dēļ nav iespējams izveidot datni. Lūdzu manuāli izveidojiet datni %s, un ielādējiet to savā Joomla "_QQ_"installation"_QQ_" mapē." INSTL_DATABASE_NAME_DESC="Dažiem tīmekļa mitināšanas plāniem ir pieejama tikai viena datu bāze. Lai instalētu vairākas Joomla vietnes, katrai izmantojiet savādāku tabulu prefiksu." From 686e92a6f182af36855ba29fcf8fadb755e75b6e Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:25:11 +0200 Subject: [PATCH 045/148] Update pt-BR.ini --- installation/language/pt-BR/pt-BR.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/pt-BR/pt-BR.ini b/installation/language/pt-BR/pt-BR.ini index 77d2305164d01..88efd8a380936 100644 --- a/installation/language/pt-BR/pt-BR.ini +++ b/installation/language/pt-BR/pt-BR.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Configuração do Banco de Dados" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="Consulta ao banco PostgreSQL falhou." INSTL_DATABASE_HOST_DESC="Isso geralmente é "_QQ_"localhost"_QQ_" ou um nome fornecido pela empresa de hospedagem." INSTL_DATABASE_HOST_LABEL="Nome do servidor" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Você quer usar um servidor do banco de dados que não é localhost. Por motivo de segurança, confirme a propriedade da conta de hospedagem usada. Por favor, veja aqui [docspagelink] para obter mais informações." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Você quer usar um servidor do banco de dados que não é localhost. Por motivo de segurança, confirme a propriedade da conta de hospedagem usada. Por favor, veja aqui docs.joomla.org para obter mais informações." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="Para confirmar que você é o proprietário deste serviço de hospedagem, por favor, apague o arquivo %s que acabamos de criar na pasta "_QQ_"installation"_QQ_" do Joomla." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Por algum motivo não foi possível criar o arquivo. Por favor, crie manualmente um arquivo chamado %s e faça o upload para a pasta "_QQ_"installation"_QQ_" do Joomla." INSTL_DATABASE_NAME_DESC="Alguns servidores permitem apenas um nome específico de Banco de Dados por site. Neste caso, use o prefixo de tabelas para diferentes sites Joomla." From 9a9bfc94db4ebc5bfd2edc24db92e96427e654d7 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 24 Jul 2017 15:25:57 +0200 Subject: [PATCH 046/148] Update sv-SE.ini --- installation/language/sv-SE/sv-SE.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/language/sv-SE/sv-SE.ini b/installation/language/sv-SE/sv-SE.ini index a717e9d6a049b..6cd45c8085007 100644 --- a/installation/language/sv-SE/sv-SE.ini +++ b/installation/language/sv-SE/sv-SE.ini @@ -31,7 +31,7 @@ INSTL_DATABASE="Databasinställningar" INSTL_DATABASE_ERROR_POSTGRESQL_QUERY="PostgreSQL databasfrågan misslyckades." INSTL_DATABASE_HOST_DESC="Detta är ofta "_QQ_"localhost"_QQ_" eller ett namn du fått från webhotellet." INSTL_DATABASE_HOST_LABEL="Värdnamn" -INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Du vill använda en databasvärd som inte är localhost. Av säkerhetsskäl måste du verifiera äganderätten till webhosting kontot. [docspagelink] för mer information se här." +INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE="Du vill använda en databasvärd som inte är localhost. Av säkerhetsskäl måste du verifiera äganderätten till webhosting kontot. docs.joomla.org för mer information se här." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE="För att bekräfta att du är ägare av detta webbhotellkonto, måste du radera filen %s vi just nu har skapat i mappen ”installation” i din Joomla." INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE="Av någon anledning kan vi inte skapa filen. Du måste manuellt skapa en fil som heter %s och överföra den till mappen ”installation” i din Joomla." INSTL_DATABASE_NAME_DESC="Vissa webbhotell tillåter bara ett databasnamn per konto. Använd i så fall tabellprefix för att särskilja flera Joomla-installationer." From 65c81594b41c1291a160f96d1d43b6fa1377f8de Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Tue, 25 Jul 2017 12:16:48 +0200 Subject: [PATCH 047/148] fixed a logic change in #12294, thanks @Hoffi1 --- components/com_users/helpers/html/users.php | 34 +++++++++------------ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/components/com_users/helpers/html/users.php b/components/com_users/helpers/html/users.php index e8f06333af88d..29adb3e3c4117 100644 --- a/components/com_users/helpers/html/users.php +++ b/components/com_users/helpers/html/users.php @@ -72,35 +72,29 @@ public static function helpsite($value) { return static::value($value); } - else - { - $pathToXml = JPATH_ADMINISTRATOR . '/help/helpsites.xml'; - $text = $value; + $text = $value; - if (!empty($pathToXml) && $xml = simplexml_load_file($pathToXml)) + if ($xml = simplexml_load_file(JPATH_ADMINISTRATOR . '/help/helpsites.xml')) + { + foreach ($xml->sites->site as $site) { - foreach ($xml->sites->site as $site) + if ((string) $site->attributes()->url == $value) { - if ((string) $site->attributes()->url == $value) - { - $text = (string) $site; - break; - } + $text = (string) $site; + break; } } + } - $value = htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); + $value = htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); - if (strpos($value, 'http') !== 0) - { - return '' . $text . ''; - } - else - { - return '' . $text . ''; - } + if (strpos($value, 'http') === 0) + { + return '' . $text . ''; } + + return '' . $text . ''; } /** From ea0304a36ed979283b5ffb8daa50ed6c9733cada Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Tue, 25 Jul 2017 12:20:08 +0200 Subject: [PATCH 048/148] Prepare 3.7.4 Stable Release --- administrator/manifests/files/joomla.xml | 2 +- installation/model/database.php | 65 +++++++++++++++++++ libraries/cms/version/version.php | 8 +-- .../vendor/joomla/filter/src/InputFilter.php | 1 + 4 files changed, 71 insertions(+), 5 deletions(-) diff --git a/administrator/manifests/files/joomla.xml b/administrator/manifests/files/joomla.xml index 4291ae437e875..5b9d6efd48bce 100644 --- a/administrator/manifests/files/joomla.xml +++ b/administrator/manifests/files/joomla.xml @@ -6,7 +6,7 @@ www.joomla.org (C) 2005 - 2017 Open Source Matters. All rights reserved GNU General Public License version 2 or later; see LICENSE.txt - 3.7.4-dev + 3.7.4 July 2017 FILES_JOOMLA_XML_DESCRIPTION diff --git a/installation/model/database.php b/installation/model/database.php index 41bdc6c6c6c1f..158231eeef13f 100644 --- a/installation/model/database.php +++ b/installation/model/database.php @@ -164,6 +164,71 @@ public function initialise($options) return false; } + // Per Default allowed DB Hosts + $localhost = array( + 'localhost', + '127.0.0.1', + '::1', + ); + + // Check the security file if the db_host is not localhost / 127.0.0.1 / ::1 + if (!in_array($options->db_host, $localhost)) + { + // Add the general message + JFactory::getApplication()->enqueueMessage( + JText::sprintf( + 'INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_GENERAL_MESSAGE', + 'https://docs.joomla.org/Special:MyLanguage/J3.x:Secured_procedure_for_installing_Joomla_with_a_remote_database' + ), + 'warning' + ); + + $remoteDbFile = JFactory::getSession()->get('remoteDbFile', false); + + if ($remoteDbFile === false) + { + // This is the remote database file you need to remove if you want to use a remote database + $remoteDbFile = '_Joomla' . JUserHelper::genRandomPassword(21) . '.txt'; + JFactory::getSession()->set('remoteDbFile', $remoteDbFile); + + // Get the path + $remoteDbPath = JPATH_INSTALLATION . '/' . $remoteDbFile; + + // When the path is not writable the user need to create the file itself + if (!JFile::write($remoteDbPath, '')) + { + // Request to create the file manually + JFactory::getApplication()->enqueueMessage(JText::sprintf('INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE', $remoteDbFile), 'error'); + + JFactory::getSession()->set('remoteDbFileUnwritable', true); + + return false; + } + + // Save the file name to the session + JFactory::getSession()->set('remoteDbFileWrittenByJoomla', true); + + // Request to delete that file + JFactory::getApplication()->enqueueMessage(JText::sprintf('INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE', $remoteDbFile), 'error'); + + return false; + } + + if (JFactory::getSession()->get('remoteDbFileWrittenByJoomla', false) === true && file_exists(JPATH_INSTALLATION . '/' . $remoteDbFile)) + { + JFactory::getApplication()->enqueueMessage(JText::sprintf('INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_DELETE_FILE', $remoteDbFile), 'error'); + + return false; + } + + if (JFactory::getSession()->get('remoteDbFileUnwritable', false) === true && !file_exists(JPATH_INSTALLATION . '/' . $remoteDbFile)) + { + JFactory::getApplication()->enqueueMessage(JText::sprintf('INSTL_DATABASE_HOST_IS_NOT_LOCALHOST_CREATE_FILE', $remoteDbFile), 'error'); + + return false; + } + } + // Get a database object. try { diff --git a/libraries/cms/version/version.php b/libraries/cms/version/version.php index ea8187642a1ea..daebb051d20dd 100644 --- a/libraries/cms/version/version.php +++ b/libraries/cms/version/version.php @@ -38,7 +38,7 @@ final class JVersion * @var string * @since 3.5 */ - const DEV_LEVEL = '4-dev'; + const DEV_LEVEL = '4'; /** * Development status. @@ -46,7 +46,7 @@ final class JVersion * @var string * @since 3.5 */ - const DEV_STATUS = 'Development'; + const DEV_STATUS = 'Stable'; /** * Build number. @@ -70,7 +70,7 @@ final class JVersion * @var string * @since 3.5 */ - const RELDATE = '18-July-2017'; + const RELDATE = '25-July-2017'; /** * Release time. @@ -78,7 +78,7 @@ final class JVersion * @var string * @since 3.5 */ - const RELTIME = '16:03'; + const RELTIME = '11:11'; /** * Release timezone. diff --git a/libraries/vendor/joomla/filter/src/InputFilter.php b/libraries/vendor/joomla/filter/src/InputFilter.php index 3c7aa6dd2d1b8..c3cab34457cb2 100644 --- a/libraries/vendor/joomla/filter/src/InputFilter.php +++ b/libraries/vendor/joomla/filter/src/InputFilter.php @@ -126,6 +126,7 @@ class InputFilter 'bgsound', 'base', 'basefont', + 'canvas', 'embed', 'frame', 'frameset', From 68545028b90376ec40e604fb36f2d5782d15f478 Mon Sep 17 00:00:00 2001 From: Robert Deutz Date: Tue, 25 Jul 2017 16:30:10 +0200 Subject: [PATCH 049/148] set 3.8.0 Dev State --- README.md | 2 +- README.txt | 2 +- administrator/language/en-GB/en-GB.xml | 2 +- administrator/language/en-GB/install.xml | 2 +- administrator/manifests/files/joomla.xml | 2 +- administrator/manifests/packages/pkg_en-GB.xml | 2 +- build.xml | 2 +- installation/language/en-GB/en-GB.xml | 2 +- language/en-GB/en-GB.xml | 2 +- language/en-GB/install.xml | 2 +- libraries/cms/version/version.php | 8 ++++---- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 2b631d9f72d89..0ec4f92782430 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ What is this? --------------------- * This is a Joomla! 3.x installation/upgrade package. * Joomla's [Official website](https://www.joomla.org). -* Joomla! 3.7 [version history](https://docs.joomla.org/Special:MyLanguage/Joomla_3.7_version_history). +* Joomla! 3.8 [version history](https://docs.joomla.org/Special:MyLanguage/Joomla_3.8_version_history). * Detailed changes are in the [changelog](https://github.com/joomla/joomla-cms/commits/master). What is Joomla? diff --git a/README.txt b/README.txt index a9c9c1789e1cf..31bc4fa9a35c9 100644 --- a/README.txt +++ b/README.txt @@ -1,7 +1,7 @@ 1- What is this? * This is a Joomla! installation/upgrade package to version 3.x * Joomla! Official site: https://www.joomla.org - * Joomla! 3.7 version history - https://docs.joomla.org/Special:MyLanguage/Joomla_3.7_version_history + * Joomla! 3.8 version history - https://docs.joomla.org/Special:MyLanguage/Joomla_3.8_version_history * Detailed changes in the Changelog: https://github.com/joomla/joomla-cms/commits/master 2- What is Joomla? diff --git a/administrator/language/en-GB/en-GB.xml b/administrator/language/en-GB/en-GB.xml index fb6dbff2e10e9..34a6f69485f9a 100644 --- a/administrator/language/en-GB/en-GB.xml +++ b/administrator/language/en-GB/en-GB.xml @@ -1,7 +1,7 @@ English (en-GB) - 3.7.4 + 3.8.0 July 2017 Joomla! Project admin@joomla.org diff --git a/administrator/language/en-GB/install.xml b/administrator/language/en-GB/install.xml index b4853e7bbad4c..3005a501589af 100644 --- a/administrator/language/en-GB/install.xml +++ b/administrator/language/en-GB/install.xml @@ -2,7 +2,7 @@ English (en-GB) en-GB - 3.7.4 + 3.8.0 July 2017 Joomla! Project admin@joomla.org diff --git a/administrator/manifests/files/joomla.xml b/administrator/manifests/files/joomla.xml index 5b9d6efd48bce..748fc4b09c3f7 100644 --- a/administrator/manifests/files/joomla.xml +++ b/administrator/manifests/files/joomla.xml @@ -6,7 +6,7 @@ www.joomla.org (C) 2005 - 2017 Open Source Matters. All rights reserved GNU General Public License version 2 or later; see LICENSE.txt - 3.7.4 + 3.8.0-dev July 2017 FILES_JOOMLA_XML_DESCRIPTION diff --git a/administrator/manifests/packages/pkg_en-GB.xml b/administrator/manifests/packages/pkg_en-GB.xml index a9c90c734c352..4b5e2c044aea8 100644 --- a/administrator/manifests/packages/pkg_en-GB.xml +++ b/administrator/manifests/packages/pkg_en-GB.xml @@ -2,7 +2,7 @@ English (en-GB) Language Pack en-GB - 3.7.4.1 + 3.8.0.1 July 2017 Joomla! Project admin@joomla.org diff --git a/build.xml b/build.xml index 43a7fe83498f2..99eb0c512d436 100644 --- a/build.xml +++ b/build.xml @@ -84,7 +84,7 @@ - + diff --git a/installation/language/en-GB/en-GB.xml b/installation/language/en-GB/en-GB.xml index ad089fbd97bd1..3ff18268f6c2b 100644 --- a/installation/language/en-GB/en-GB.xml +++ b/installation/language/en-GB/en-GB.xml @@ -3,7 +3,7 @@ version="3.7" client="installation"> English (United Kingdom) - 3.7.4 + 3.8.0 July 2017 Joomla! Project Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved. diff --git a/language/en-GB/en-GB.xml b/language/en-GB/en-GB.xml index 45a1d6618b516..a791a25e9308c 100644 --- a/language/en-GB/en-GB.xml +++ b/language/en-GB/en-GB.xml @@ -1,7 +1,7 @@ English (en-GB) - 3.7.4 + 3.8.0 July 2017 Joomla! Project admin@joomla.org diff --git a/language/en-GB/install.xml b/language/en-GB/install.xml index 70de51a813fa0..9376a9d01ec7b 100644 --- a/language/en-GB/install.xml +++ b/language/en-GB/install.xml @@ -2,7 +2,7 @@ English (en-GB) en-GB - 3.7.4 + 3.8.0 July 2017 Joomla! Project admin@joomla.org diff --git a/libraries/cms/version/version.php b/libraries/cms/version/version.php index daebb051d20dd..a614097b78771 100644 --- a/libraries/cms/version/version.php +++ b/libraries/cms/version/version.php @@ -30,7 +30,7 @@ final class JVersion * @var string * @since 3.5 */ - const RELEASE = '3.7'; + const RELEASE = '3.8'; /** * Maintenance version. @@ -38,7 +38,7 @@ final class JVersion * @var string * @since 3.5 */ - const DEV_LEVEL = '4'; + const DEV_LEVEL = '0-dev'; /** * Development status. @@ -46,7 +46,7 @@ final class JVersion * @var string * @since 3.5 */ - const DEV_STATUS = 'Stable'; + const DEV_STATUS = 'Development'; /** * Build number. @@ -78,7 +78,7 @@ final class JVersion * @var string * @since 3.5 */ - const RELTIME = '11:11'; + const RELTIME = '15:29'; /** * Release timezone. From d7e6fa1a65b9aa87d4412bad722623a672ed7015 Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Tue, 25 Jul 2017 17:59:11 -0500 Subject: [PATCH 050/148] Update phpDocumentor build --- build.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.xml b/build.xml index 99eb0c512d436..4fd02118e473f 100644 --- a/build.xml +++ b/build.xml @@ -76,9 +76,9 @@ - + - + From 129748118638c80b6d07e8d51114eb3fe1816694 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Tue, 25 Jul 2017 18:03:19 -0500 Subject: [PATCH 051/148] remove the never working limitstart call (#17184) --- components/com_content/helpers/icon.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/com_content/helpers/icon.php b/components/com_content/helpers/icon.php index d9eb4a81da04c..cadcc20afd556 100644 --- a/components/com_content/helpers/icon.php +++ b/components/com_content/helpers/icon.php @@ -174,12 +174,8 @@ public static function edit($article, $params, $attribs = array(), $legacy = fal */ public static function print_popup($article, $params, $attribs = array(), $legacy = false) { - $app = JFactory::getApplication(); - $input = $app->input; - $request = $input->request; - $url = ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language); - $url .= '&tmpl=component&print=1&layout=default&page=' . @ $request->limitstart; + $url .= '&tmpl=component&print=1&layout=default'; $status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'; From c45a67db18193bf3f29fbc45ac51b9d2875284eb Mon Sep 17 00:00:00 2001 From: zero-24 Date: Wed, 26 Jul 2017 01:06:01 +0200 Subject: [PATCH 052/148] fix joomla.content.options_default (#17123) --- layouts/joomla/content/options_default.php | 36 ++++++++-------------- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/layouts/joomla/content/options_default.php b/layouts/joomla/content/options_default.php index e36532c308390..7874f71ae8f99 100644 --- a/layouts/joomla/content/options_default.php +++ b/layouts/joomla/content/options_default.php @@ -12,37 +12,25 @@
      name; ?> - description)) : ?>

      description; ?>

      - - fieldsname); - - foreach ($fieldsnames as $fieldname) - { - foreach ($displayData->form->getFieldset($fieldname) as $field) - { - $datashowon = ''; - $groupClass = $field->type === 'Spacer' ? ' field-spacer' : ''; - - if ($field->showon) - { - JHtml::_('jquery.framework'); - JHtml::_('script', 'jui/cms.js', array('version' => 'auto', 'relative' => true)); - $datashowon = ' data-showon=\'' . json_encode(JFormHelper::parseShowOnConditions($field->showon, $field->formControl, $field->group)) . '\''; - } - ?> + fieldsname); ?> + + form->getFieldset($fieldname) as $field) : ?> + + type === 'Spacer' ? ' field-spacer' : ''; ?> + showon) : ?> + + 'auto', 'relative' => true)); ?> + showon, $field->formControl, $field->group)) . '\''; ?> +
      > showlabel) || $displayData->showlabel) : ?>
      label; ?>
      -
      input; ?>
      - + +
      From 68f5365263e023707d5d8840c914061fe22eb869 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 26 Jul 2017 00:23:06 +0100 Subject: [PATCH 053/148] com_banners incorret tooltip (#17157) The tooltip says that the images must be in the images/banners folder but this isnt true they can be in any folder --- administrator/language/en-GB/en-GB.com_banners.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/language/en-GB/en-GB.com_banners.ini b/administrator/language/en-GB/en-GB.com_banners.ini index c2e450aecaa30..b0da025926b54 100644 --- a/administrator/language/en-GB/en-GB.com_banners.ini +++ b/administrator/language/en-GB/en-GB.com_banners.ini @@ -111,7 +111,7 @@ COM_BANNERS_FIELD_EXTRAINFO_DESC="Enter extra information for this client." COM_BANNERS_FIELD_EXTRAINFO_LABEL="Additional Information" COM_BANNERS_FIELD_HEIGHT_DESC="The height of the banner." COM_BANNERS_FIELD_HEIGHT_LABEL="Height" -COM_BANNERS_FIELD_IMAGE_DESC="Select or upload an image for this banner. Images have to be in the /images/banners/ folder." +COM_BANNERS_FIELD_IMAGE_DESC="Select or upload an image for this banner." COM_BANNERS_FIELD_IMAGE_LABEL="Image" COM_BANNERS_FIELD_IMPMADE_DESC="Displays the number of impressions made for the banner." COM_BANNERS_FIELD_IMPMADE_LABEL="Total Impressions" @@ -137,7 +137,7 @@ COM_BANNERS_FIELD_TRACKCLICK_DESC="Record the number of clicks on the banners on COM_BANNERS_FIELD_TRACKCLICK_LABEL="Track Clicks" COM_BANNERS_FIELD_TRACKIMPRESSION_DESC="Record the impressions (views) of the banners on a daily basis." COM_BANNERS_FIELD_TRACKIMPRESSION_LABEL="Track Impressions" -COM_BANNERS_FIELD_TYPE_DESC="Choose the type of banner. Select Image to display an image from /images/banners/ folder. Select Custom to enter your custom code." +COM_BANNERS_FIELD_TYPE_DESC="Choose the type of banner. Select Image to display an image. Select Custom to enter your custom code." COM_BANNERS_FIELD_TYPE_LABEL="Type" ; The following five strings are deprecated and will be removed with 4.0. They generate wrong plural detection in Crowdin. COM_BANNERS_FIELD_VALUE_1="Unlimited" From 159af43bcd339108c5fcdfe447a4f5bc07fd12dc Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Wed, 26 Jul 2017 00:23:37 +0100 Subject: [PATCH 054/148] mod_login showon option (#17153) As seen below the option for Show Name is in the wrong place --- modules/mod_login/mod_login.xml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/mod_login/mod_login.xml b/modules/mod_login/mod_login.xml index 52088a17c32c3..57530b91fda93 100644 --- a/modules/mod_login/mod_login.xml +++ b/modules/mod_login/mod_login.xml @@ -84,18 +84,6 @@ - - - - - MOD_LOGIN_VALUE_NAME + + + + + Date: Wed, 26 Jul 2017 00:24:13 +0100 Subject: [PATCH 055/148] Text Filters layout (#17113) * Text Filters layout At some point in the past when layouts were added the design of the global configuration text filters was changed and it looks odd This PR adds a new layoout just for text filters without the big empty space * updated as requested by @zero-24 --- .../view/application/tmpl/default_filters.php | 2 +- layouts/joomla/content/text_filters.php | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 layouts/joomla/content/text_filters.php diff --git a/administrator/components/com_config/view/application/tmpl/default_filters.php b/administrator/components/com_config/view/application/tmpl/default_filters.php index f6126af0ecc3f..504572e950fe4 100644 --- a/administrator/components/com_config/view/application/tmpl/default_filters.php +++ b/administrator/components/com_config/view/application/tmpl/default_filters.php @@ -12,4 +12,4 @@ $this->name = JText::_('COM_CONFIG_TEXT_FILTER_SETTINGS'); $this->fieldsname = 'filters'; $this->description = JText::_('COM_CONFIG_TEXT_FILTERS_DESC'); -echo JLayoutHelper::render('joomla.content.options_default', $this); +echo JLayoutHelper::render('joomla.content.text_filters', $this); diff --git a/layouts/joomla/content/text_filters.php b/layouts/joomla/content/text_filters.php new file mode 100644 index 0000000000000..51ea0a43ab5f3 --- /dev/null +++ b/layouts/joomla/content/text_filters.php @@ -0,0 +1,24 @@ + + +
      + name; ?> + description)) : ?> +

      description; ?>

      + + fieldsname); ?> + + form->getFieldset($fieldname) as $field) : ?> +
      input; ?>
      + + +
      From 66c905764bb1b8542ba1be210beb85728faa5be3 Mon Sep 17 00:00:00 2001 From: Tony Partridge Date: Wed, 26 Jul 2017 00:37:44 +0100 Subject: [PATCH 056/148] Menu items list parent filter (#17060) * removed duplicate parentId state * New feature - Filter menu items by parent item. For issues #16882 * pre-select menu item parent if filtered by parent when creating a new menu item * fixed slack tabbing * Language changes as per @brianteeman * Added parent_id to constructor so the search tools stay open when in use. * Added new field filter for menu items which is filter dynamically by Menu Type if is filtered by Menu Type. * Code style changes * Code style changes * Code style changes - Codesniffer auto * Reverted CodeSniffer auto fix and applied single fix. * Made changes requested by @quy * Moved to alpha ordering. * Updated as oer @Quy 's comments * Updated changes as per @mbabker 's comments. * Version placeholder, not new in 1.6 ;-) --- .../models/fields/menuitembytype.php | 278 ++++++++++++++++++ .../com_menus/models/forms/filter_items.xml | 9 + .../components/com_menus/models/item.php | 1 + .../components/com_menus/models/items.php | 4 +- .../language/en-GB/en-GB.com_menus.ini | 3 + 5 files changed, 292 insertions(+), 3 deletions(-) create mode 100644 administrator/components/com_menus/models/fields/menuitembytype.php diff --git a/administrator/components/com_menus/models/fields/menuitembytype.php b/administrator/components/com_menus/models/fields/menuitembytype.php new file mode 100644 index 0000000000000..059e0308b0f44 --- /dev/null +++ b/administrator/components/com_menus/models/fields/menuitembytype.php @@ -0,0 +1,278 @@ +$name; + } + + return parent::__get($name); + } + + /** + * Method to set certain otherwise inaccessible properties of the form field object. + * + * @param string $name The property name for which to the the value. + * @param mixed $value The value of the property. + * + * @return void + * + * @since __DEPLOY_VERSION__ + */ + public function __set($name, $value) + { + switch ($name) + { + case 'menuType': + $this->menuType = (string) $value; + break; + + case 'clientId': + $this->clientId = (int) $value; + break; + + case 'language': + case 'published': + case 'disable': + $value = (string) $value; + $this->$name = $value ? explode(',', $value) : array(); + break; + + default: + parent::__set($name, $value); + } + } + + /** + * Method to attach a JForm object to the field. + * + * @param SimpleXMLElement $element The SimpleXMLElement object representing the `` tag for the form field object. + * @param mixed $value The form field value to validate. + * @param string $group The field name group control value. This acts as an array container for the field. + * For example if the field has name="foo" and the group value is set to "bar" then the + * full field name would end up being "bar[foo]". + * + * @return boolean True on success. + * + * @see JFormField::setup() + * @since __DEPLOY_VERSION__ + */ + public function setup(SimpleXMLElement $element, $value, $group = null) + { + $result = parent::setup($element, $value, $group); + + if ($result == true) + { + $menuType = (string) $this->element['menu_type']; + + if (!$menuType) + { + $app = JFactory::getApplication('administrator'); + $currentMenuType = $app->getUserState('com_menus.items.menutype', ''); + $menuType = $app->input->getString('menutype', $currentMenuType); + } + + $this->menuType = $menuType; + $this->clientId = (int) $this->element['client_id']; + $this->published = $this->element['published'] ? explode(',', (string) $this->element['published']) : array(); + $this->disable = $this->element['disable'] ? explode(',', (string) $this->element['disable']) : array(); + $this->language = $this->element['language'] ? explode(',', (string) $this->element['language']) : array(); + } + + return $result; + } + + /** + * Method to get the field option groups. + * + * @return array The field option objects as a nested array in groups. + * + * @since __DEPLOY_VERSION__ + */ + protected function getGroups() + { + $groups = array(); + + $menuType = $this->menuType; + + // Get the menu items. + $items = MenusHelper::getMenuLinks($menuType, 0, 0, $this->published, $this->language, $this->clientId); + + // Build group for a specific menu type. + if ($menuType) + { + // If the menutype is empty, group the items by menutype. + $db = JFactory::getDbo(); + $query = $db->getQuery(true) + ->select($db->quoteName('title')) + ->from($db->quoteName('#__menu_types')) + ->where($db->quoteName('menutype') . ' = ' . $db->quote($menuType)); + $db->setQuery($query); + + try + { + $menuTitle = $db->loadResult(); + } + catch (RuntimeException $e) + { + $menuTitle = $menuType; + } + + // Initialize the group. + $groups[$menuTitle] = array(); + + // Build the options array. + foreach ($items as $key => $link) + { + // Unset if item is menu_item_root + if ($link->text === 'Menu_Item_Root') + { + unset($items[$key]); + continue; + } + + $levelPrefix = str_repeat('- ', max(0, $link->level - 1)); + + // Displays language code if not set to All + if ($link->language !== '*') + { + $lang = ' (' . $link->language . ')'; + } + else + { + $lang = ''; + } + + $groups[$menuTitle][] = JHtml::_('select.option', + $link->value, $levelPrefix . $link->text . $lang, + 'value', + 'text', + in_array($link->type, $this->disable) + ); + } + } + // Build groups for all menu types. + else + { + // Build the groups arrays. + foreach ($items as $menu) + { + // Initialize the group. + $groups[$menu->title] = array(); + + // Build the options array. + foreach ($menu->links as $link) + { + $levelPrefix = str_repeat('- ', $link->level - 1); + + // Displays language code if not set to All + if ($link->language !== '*') + { + $lang = ' (' . $link->language . ')'; + } + else + { + $lang = ''; + } + + $groups[$menu->title][] = JHtml::_('select.option', + $link->value, + $levelPrefix . $link->text . $lang, + 'value', + 'text', + in_array($link->type, $this->disable) + ); + } + } + } + + // Merge any additional groups in the XML definition. + $groups = array_merge(parent::getGroups(), $groups); + + return $groups; + } +} diff --git a/administrator/components/com_menus/models/forms/filter_items.xml b/administrator/components/com_menus/models/forms/filter_items.xml index 2e6e14f3906b1..28672454e21f4 100644 --- a/administrator/components/com_menus/models/forms/filter_items.xml +++ b/administrator/components/com_menus/models/forms/filter_items.xml @@ -74,6 +74,15 @@ > + + + getUserState('com_menus.items.filter'); + $data['parent_id'] = (isset($filters['parent_id']) ? $filters['parent_id'] : null); $data['published'] = (isset($filters['published']) ? $filters['published'] : null); $data['language'] = (isset($filters['language']) ? $filters['language'] : null); $data['access'] = (!empty($filters['access']) ? $filters['access'] : JFactory::getConfig()->get('access')); diff --git a/administrator/components/com_menus/models/items.php b/administrator/components/com_menus/models/items.php index 9febfb9e122b9..20fad614a1e88 100644 --- a/administrator/components/com_menus/models/items.php +++ b/administrator/components/com_menus/models/items.php @@ -44,6 +44,7 @@ public function __construct($config = array()) 'path', 'a.path', 'client_id', 'a.client_id', 'home', 'a.home', + 'parent_id', 'a.parent_id', 'a.ordering' ); @@ -90,9 +91,6 @@ protected function populateState($ordering = 'a.lft', $direction = 'asc') $this->context .= '.' . $forcedLanguage; } - $parentId = $this->getUserStateFromRequest($this->context . '.filter.parent_id', 'filter_parent_id'); - $this->setState('filter.parent_id', $parentId); - $search = $this->getUserStateFromRequest($this->context . '.search', 'filter_search'); $this->setState('filter.search', $search); diff --git a/administrator/language/en-GB/en-GB.com_menus.ini b/administrator/language/en-GB/en-GB.com_menus.ini index fd1bc0b206f58..cdb8bc2f93140 100644 --- a/administrator/language/en-GB/en-GB.com_menus.ini +++ b/administrator/language/en-GB/en-GB.com_menus.ini @@ -37,6 +37,9 @@ COM_MENUS_FIELD_VALUE_NEW_WITH_NAV="New Window With Navigation" COM_MENUS_FIELD_VALUE_NEW_WITHOUT_NAV="New Without Navigation" COM_MENUS_FIELD_VALUE_PARENT="Parent" COM_MENUS_FIELDSET_RULES="Permissions" +COM_MENUS_FILTER_PARENT_MENU_ITEM_DESC="Filters the menu items list where the parent is this selected menu item." +COM_MENUS_FILTER_PARENT_MENU_ITEM_LABEL="Parent Menu Item" +COM_MENUS_FILTER_SELECT_PARENT_MENU_ITEM="- Select Parent Menu Item -" COM_MENUS_GRID_UNSET_LANGUAGE="Unset %s Default" COM_MENUS_HEADING_ASSIGN_MODULE="Module" COM_MENUS_HEADING_ASSOCIATION="Association" From 5d3f4f6501bdf4f607bbd0236c8d3e65be3a6de2 Mon Sep 17 00:00:00 2001 From: Fedir Zinchuk Date: Wed, 26 Jul 2017 01:43:18 +0200 Subject: [PATCH 057/148] Fix the path for the ajax-loader.gif (#16701) --- media/system/js/core-uncompressed.js | 13 +++++++------ media/system/js/core.js | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/media/system/js/core-uncompressed.js b/media/system/js/core-uncompressed.js index 82636b3bfacbf..2e6cf1ec710ac 100644 --- a/media/system/js/core-uncompressed.js +++ b/media/system/js/core-uncompressed.js @@ -722,10 +722,10 @@ Joomla.editors.instances = Joomla.editors.instances || { * Used in: /administrator/components/com_installer/views/languages/tmpl/default.php * /installation/template/js/installation.js * - * @param string task The task to do [load, show, hide] (defaults to show). - * @param object parentElement The HTML element where we are appending the layer (defaults to body). + * @param {String} task The task to do [load, show, hide] (defaults to show). + * @param {HTMLElement} parentElement The HTML element where we are appending the layer (defaults to body). * - * @return object The HTML loading layer element. + * @return {HTMLElement} The HTML loading layer element. * * @since 3.6.0 */ @@ -735,10 +735,11 @@ Joomla.editors.instances = Joomla.editors.instances || { parentElement = parentElement || document.body; // Create the loading layer (hidden by default). - if (task == 'load') + if (task === 'load') { - // Gets the site base path from the body element (defaults to empty - no subfolder) - var basePath = document.getElementsByTagName('body')[0].getAttribute('data-basepath') || ''; + // Gets the site base path + var systemPaths = Joomla.getOptions('system.paths') || {}, + basePath = systemPaths.root || ''; var loadingDiv = document.createElement('div'); diff --git a/media/system/js/core.js b/media/system/js/core.js index fb61cd32c04bf..7bd90baa65658 100644 --- a/media/system/js/core.js +++ b/media/system/js/core.js @@ -1 +1 @@ -Joomla=window.Joomla||{};Joomla.editors=Joomla.editors||{};Joomla.editors.instances=Joomla.editors.instances||{};(function(Joomla,document){"use strict";Joomla.submitform=function(task,form,validate){if(!form){form=document.getElementById("adminForm")}if(task){form.task.value=task}form.noValidate=!validate;if(!validate){form.setAttribute("novalidate","")}else if(form.hasAttribute("novalidate")){form.removeAttribute("novalidate")}var button=document.createElement("input");button.style.display="none";button.type="submit";form.appendChild(button).click();form.removeChild(button)};Joomla.submitbutton=function(pressbutton){Joomla.submitform(pressbutton)};Joomla.JText={strings:{},_:function(key,def){var newStrings=Joomla.getOptions("joomla.jtext");if(newStrings){this.load(newStrings);Joomla.loadOptions({"joomla.jtext":null})}def=def===undefined?"":def;key=key.toUpperCase();return this.strings[key]!==undefined?this.strings[key]:def},load:function(object){for(var key in object){if(!object.hasOwnProperty(key))continue;this.strings[key.toUpperCase()]=object[key]}return this}};Joomla.optionsStorage=Joomla.optionsStorage||null;Joomla.getOptions=function(key,def){if(!Joomla.optionsStorage){Joomla.loadOptions()}return Joomla.optionsStorage[key]!==undefined?Joomla.optionsStorage[key]:def};Joomla.loadOptions=function(options){if(!options){var elements=document.querySelectorAll(".joomla-script-options.new"),str,element,option,counter=0;for(var i=0,l=elements.length;i=0;i--){messageWrapper=document.createElement("div");messageWrapper.innerHTML=typeMessages[i];messagesBox.appendChild(messageWrapper)}messageContainer.appendChild(messagesBox)}};Joomla.removeMessages=function(){var messageContainer=document.getElementById("system-message-container");while(messageContainer.firstChild)messageContainer.removeChild(messageContainer.firstChild);messageContainer.style.display="none";messageContainer.offsetHeight;messageContainer.style.display=""};Joomla.ajaxErrorsMessages=function(xhr,textStatus,error){var msg={};if(textStatus==="parsererror"){var encodedJson=xhr.responseText.trim();var buf=[];for(var i=encodedJson.length-1;i>=0;i--){buf.unshift(["&#",encodedJson[i].charCodeAt(),";"].join(""))}encodedJson=buf.join("");msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_PARSE").replace("%s",encodedJson)]}else if(textStatus==="nocontent"){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_NO_CONTENT")]}else if(textStatus==="timeout"){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_TIMEOUT")]}else if(textStatus==="abort"){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_CONNECTION_ABORT")]}else if(xhr.responseJSON&&xhr.responseJSON.message){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",xhr.status)+" "+xhr.responseJSON.message+""]}else if(xhr.statusText){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",xhr.status)+" "+xhr.statusText+""]}else{msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",xhr.status)]}return msg};Joomla.isChecked=function(isitchecked,form){if(typeof form==="undefined"){form=document.getElementById("adminForm")}form.boxchecked.value=isitchecked?parseInt(form.boxchecked.value)+1:parseInt(form.boxchecked.value)-1;if(!form.elements["checkall-toggle"])return;var c=true,i,e,n;for(i=0,n=form.elements.length;i",hasSelection=key==orig_key,i=0,selected,x,item;for(x in source){if(!source.hasOwnProperty(x)){continue}item=source[x];if(item[0]!=key){continue}selected="";if(hasSelection&&orig_val==item[1]||!hasSelection&&i===0){selected='selected="selected"'}html+='";i++}html+="";if(element){element.innerHTML=html}else{document.writeln(html)}};window.changeDynaList=function(listname,source,key,orig_key,orig_val){var list=document.adminForm[listname],hasSelection=key==orig_key,i,x,item,opt;while(list.firstChild)list.removeChild(list.firstChild);i=0;for(x in source){if(!source.hasOwnProperty(x)){continue}item=source[x];if(item[0]!=key){continue}opt=new Option;opt.value=item[1];opt.text=item[2];if(hasSelection&&orig_val==opt.value||!hasSelection&&i===0){opt.selected=true}list.options[i++]=opt}list.length=i};window.radioGetCheckedValue=function(radioObj){if(!radioObj){return""}var n=radioObj.length,i;if(n===undefined){return radioObj.checked?radioObj.value:""}for(i=0;i-1){return srcList.options[i].value}else{return null}};window.listItemTask=function(id,task){var f=document.adminForm,i=0,cbx,cb=f[id];if(!cb)return false;while(true){cbx=f["cb"+i];if(!cbx)break;cbx.checked=false;i++}cb.checked=true;f.boxchecked.value=1;window.submitform(task);return false};window.submitbutton=function(pressbutton){Joomla.submitbutton(pressbutton)};window.submitform=function(pressbutton){Joomla.submitform(pressbutton)};window.saveorder=function(n,task){window.checkAll_button(n,task)};window.checkAll_button=function(n,task){task=task?task:"saveorder";var j,box;for(j=0;j<=n;j++){box=document.adminForm["cb"+j];if(box){box.checked=true}else{alert("You cannot change the order of items, as an item in the list is `Checked Out`");return}}Joomla.submitform(task)};Joomla.loadingLayer=function(task,parentElement){task=task||"show";parentElement=parentElement||document.body;if(task=="load"){var basePath=document.getElementsByTagName("body")[0].getAttribute("data-basepath")||"";var loadingDiv=document.createElement("div");loadingDiv.id="loading-logo";loadingDiv.style["position"]="fixed";loadingDiv.style["top"]="0";loadingDiv.style["left"]="0";loadingDiv.style["width"]="100%";loadingDiv.style["height"]="100%";loadingDiv.style["opacity"]="0.8";loadingDiv.style["filter"]="alpha(opacity=80)";loadingDiv.style["overflow"]="hidden";loadingDiv.style["z-index"]="10000";loadingDiv.style["display"]="none";loadingDiv.style["background-color"]="#fff";loadingDiv.style["background-image"]='url("'+basePath+'/media/jui/images/ajax-loader.gif")';loadingDiv.style["background-position"]="center";loadingDiv.style["background-repeat"]="no-repeat";loadingDiv.style["background-attachment"]="fixed";parentElement.appendChild(loadingDiv)}else{if(!document.getElementById("loading-logo")){Joomla.loadingLayer("load",parentElement)}document.getElementById("loading-logo").style["display"]=task=="show"?"block":"none"}return document.getElementById("loading-logo")};Joomla.extend=function(destination,source){for(var p in source){if(source.hasOwnProperty(p)){destination[p]=source[p]}}return destination};Joomla.request=function(options){options=Joomla.extend({url:"",method:"GET",data:null,perform:true},options);options.method=options.data?"POST":options.method;try{var xhr=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");xhr.open(options.method,options.url,true);xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("X-Ajax-Engine","Joomla!");if(options.method==="POST"&&(!options.headers||!options.headers["Content-Type"])){xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}if(options.headers){for(var p in options.headers){if(options.headers.hasOwnProperty(p)){xhr.setRequestHeader(p,options.headers[p])}}}xhr.onreadystatechange=function(){if(xhr.readyState!==4)return;if(xhr.status===200){if(options.onSuccess){options.onSuccess.call(window,xhr.responseText,xhr)}}else if(options.onError){options.onError.call(window,xhr)}};if(options.perform){if(options.onBefore&&options.onBefore.call(window,xhr)===false){return xhr}xhr.send(options.data)}}catch(error){window.console?console.log(error):null;return false}return xhr}})(Joomla,document); \ No newline at end of file +Joomla=window.Joomla||{};Joomla.editors=Joomla.editors||{};Joomla.editors.instances=Joomla.editors.instances||{};(function(Joomla,document){"use strict";Joomla.submitform=function(task,form,validate){if(!form){form=document.getElementById("adminForm")}if(task){form.task.value=task}form.noValidate=!validate;if(!validate){form.setAttribute("novalidate","")}else if(form.hasAttribute("novalidate")){form.removeAttribute("novalidate")}var button=document.createElement("input");button.style.display="none";button.type="submit";form.appendChild(button).click();form.removeChild(button)};Joomla.submitbutton=function(pressbutton){Joomla.submitform(pressbutton)};Joomla.JText={strings:{},_:function(key,def){var newStrings=Joomla.getOptions("joomla.jtext");if(newStrings){this.load(newStrings);Joomla.loadOptions({"joomla.jtext":null})}def=def===undefined?"":def;key=key.toUpperCase();return this.strings[key]!==undefined?this.strings[key]:def},load:function(object){for(var key in object){if(!object.hasOwnProperty(key))continue;this.strings[key.toUpperCase()]=object[key]}return this}};Joomla.optionsStorage=Joomla.optionsStorage||null;Joomla.getOptions=function(key,def){if(!Joomla.optionsStorage){Joomla.loadOptions()}return Joomla.optionsStorage[key]!==undefined?Joomla.optionsStorage[key]:def};Joomla.loadOptions=function(options){if(!options){var elements=document.querySelectorAll(".joomla-script-options.new"),str,element,option,counter=0;for(var i=0,l=elements.length;i=0;i--){messageWrapper=document.createElement("div");messageWrapper.innerHTML=typeMessages[i];messagesBox.appendChild(messageWrapper)}messageContainer.appendChild(messagesBox)}};Joomla.removeMessages=function(){var messageContainer=document.getElementById("system-message-container");while(messageContainer.firstChild)messageContainer.removeChild(messageContainer.firstChild);messageContainer.style.display="none";messageContainer.offsetHeight;messageContainer.style.display=""};Joomla.ajaxErrorsMessages=function(xhr,textStatus,error){var msg={};if(textStatus==="parsererror"){var encodedJson=xhr.responseText.trim();var buf=[];for(var i=encodedJson.length-1;i>=0;i--){buf.unshift(["&#",encodedJson[i].charCodeAt(),";"].join(""))}encodedJson=buf.join("");msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_PARSE").replace("%s",encodedJson)]}else if(textStatus==="nocontent"){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_NO_CONTENT")]}else if(textStatus==="timeout"){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_TIMEOUT")]}else if(textStatus==="abort"){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_CONNECTION_ABORT")]}else if(xhr.responseJSON&&xhr.responseJSON.message){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",xhr.status)+" "+xhr.responseJSON.message+""]}else if(xhr.statusText){msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",xhr.status)+" "+xhr.statusText+""]}else{msg.error=[Joomla.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",xhr.status)]}return msg};Joomla.isChecked=function(isitchecked,form){if(typeof form==="undefined"){form=document.getElementById("adminForm")}form.boxchecked.value=isitchecked?parseInt(form.boxchecked.value)+1:parseInt(form.boxchecked.value)-1;if(!form.elements["checkall-toggle"])return;var c=true,i,e,n;for(i=0,n=form.elements.length;i",hasSelection=key==orig_key,i=0,selected,x,item;for(x in source){if(!source.hasOwnProperty(x)){continue}item=source[x];if(item[0]!=key){continue}selected="";if(hasSelection&&orig_val==item[1]||!hasSelection&&i===0){selected='selected="selected"'}html+='";i++}html+="";if(element){element.innerHTML=html}else{document.writeln(html)}};window.changeDynaList=function(listname,source,key,orig_key,orig_val){var list=document.adminForm[listname],hasSelection=key==orig_key,i,x,item,opt;while(list.firstChild)list.removeChild(list.firstChild);i=0;for(x in source){if(!source.hasOwnProperty(x)){continue}item=source[x];if(item[0]!=key){continue}opt=new Option;opt.value=item[1];opt.text=item[2];if(hasSelection&&orig_val==opt.value||!hasSelection&&i===0){opt.selected=true}list.options[i++]=opt}list.length=i};window.radioGetCheckedValue=function(radioObj){if(!radioObj){return""}var n=radioObj.length,i;if(n===undefined){return radioObj.checked?radioObj.value:""}for(i=0;i-1){return srcList.options[i].value}else{return null}};window.listItemTask=function(id,task){var f=document.adminForm,i=0,cbx,cb=f[id];if(!cb)return false;while(true){cbx=f["cb"+i];if(!cbx)break;cbx.checked=false;i++}cb.checked=true;f.boxchecked.value=1;window.submitform(task);return false};window.submitbutton=function(pressbutton){Joomla.submitbutton(pressbutton)};window.submitform=function(pressbutton){Joomla.submitform(pressbutton)};window.saveorder=function(n,task){window.checkAll_button(n,task)};window.checkAll_button=function(n,task){task=task?task:"saveorder";var j,box;for(j=0;j<=n;j++){box=document.adminForm["cb"+j];if(box){box.checked=true}else{alert("You cannot change the order of items, as an item in the list is `Checked Out`");return}}Joomla.submitform(task)};Joomla.loadingLayer=function(task,parentElement){task=task||"show";parentElement=parentElement||document.body;if(task==="load"){var systemPaths=Joomla.getOptions("system.paths")||{},basePath=systemPaths.root||"";var loadingDiv=document.createElement("div");loadingDiv.id="loading-logo";loadingDiv.style["position"]="fixed";loadingDiv.style["top"]="0";loadingDiv.style["left"]="0";loadingDiv.style["width"]="100%";loadingDiv.style["height"]="100%";loadingDiv.style["opacity"]="0.8";loadingDiv.style["filter"]="alpha(opacity=80)";loadingDiv.style["overflow"]="hidden";loadingDiv.style["z-index"]="10000";loadingDiv.style["display"]="none";loadingDiv.style["background-color"]="#fff";loadingDiv.style["background-image"]='url("'+basePath+'/media/jui/images/ajax-loader.gif")';loadingDiv.style["background-position"]="center";loadingDiv.style["background-repeat"]="no-repeat";loadingDiv.style["background-attachment"]="fixed";parentElement.appendChild(loadingDiv)}else{if(!document.getElementById("loading-logo")){Joomla.loadingLayer("load",parentElement)}document.getElementById("loading-logo").style["display"]=task=="show"?"block":"none"}return document.getElementById("loading-logo")};Joomla.extend=function(destination,source){for(var p in source){if(source.hasOwnProperty(p)){destination[p]=source[p]}}return destination};Joomla.request=function(options){options=Joomla.extend({url:"",method:"GET",data:null,perform:true},options);options.method=options.data?"POST":options.method;try{var xhr=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");xhr.open(options.method,options.url,true);xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("X-Ajax-Engine","Joomla!");if(options.method==="POST"&&(!options.headers||!options.headers["Content-Type"])){xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}if(options.headers){for(var p in options.headers){if(options.headers.hasOwnProperty(p)){xhr.setRequestHeader(p,options.headers[p])}}}xhr.onreadystatechange=function(){if(xhr.readyState!==4)return;if(xhr.status===200){if(options.onSuccess){options.onSuccess.call(window,xhr.responseText,xhr)}}else if(options.onError){options.onError.call(window,xhr)}};if(options.perform){if(options.onBefore&&options.onBefore.call(window,xhr)===false){return xhr}xhr.send(options.data)}}catch(error){window.console?console.log(error):null;return false}return xhr}})(Joomla,document); \ No newline at end of file From 5f5b1341bde47aedf19b3f9881839edb9720dfa2 Mon Sep 17 00:00:00 2001 From: Fedir Zinchuk Date: Wed, 26 Jul 2017 01:43:52 +0200 Subject: [PATCH 058/148] Fix for: Repeatable field is no longer rendered with Chosen layout (#16471) --- media/system/js/repeatable-uncompressed.js | 11 +++++++++-- media/system/js/repeatable.js | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/media/system/js/repeatable-uncompressed.js b/media/system/js/repeatable-uncompressed.js index 06af2de3372c3..1c9b87ee81ef2 100644 --- a/media/system/js/repeatable-uncompressed.js +++ b/media/system/js/repeatable-uncompressed.js @@ -437,8 +437,10 @@ // destroy chosen if any if($.fn.chosen){ $row.find('select').each(function(){ - if ($(this).data('chosen')) { - $(this).chosen('destroy'); + var $el = $(this); + if ($el.data('chosen')) { + $el.chosen('destroy'); + $el.addClass('here-was-chosen'); } }); } @@ -454,6 +456,11 @@ // to the one of field that in given $row self.fixScripts = function($row){ + // Chosen.js + if ($.fn.chosen) { + $row.find('select.here-was-chosen').removeClass('here-was-chosen').chosen(); + } + //color picker $row.find('.minicolors').each(function() { var $el = $(this); diff --git a/media/system/js/repeatable.js b/media/system/js/repeatable.js index 739f2bfc9cee5..c5c24dab085be 100644 --- a/media/system/js/repeatable.js +++ b/media/system/js/repeatable.js @@ -1 +1 @@ -(function($){"use strict";$.JRepeatable=function(input,options){var self=this;if(!self||self===window){return new $.JRepeatable(input,options)}self.$input=$(input);if(self.$input.data("JRepeatable")){return self}self.$input.data("JRepeatable",self);self.init=function(){self.options=$.extend({},$.JRepeatable.defaults,options);self.$container=$(self.options.container);$("body").append(self.$container);self.$rowsContainer=self.$container.find(self.options.repeatableElement).parent();self.prepareModal();self.inputs=[];self.values={};self.prepareTemplate();var val=self.$input.val();if(val){try{self.values=JSON.parse(val)}catch(e){if(e instanceof SyntaxError){try{val=val.replace(/'/g,'"').replace(/\\"/g,"'");self.values=JSON.parse(val)}catch(e){if(window.console){console.log(e)}}}else if(window.console){console.log(e)}}}self.buildRows();$(document).on("click",self.options.btModalOpen,function(e){e.preventDefault();self.$modalWindow.modal("show")});self.$modalWindow.on("click",self.options.btModalClose,function(e){e.preventDefault();self.$modalWindow.modal("hide");self.buildRows()});self.$modalWindow.on("click",self.options.btModalSaveData,function(e){e.preventDefault();self.$modalWindow.modal("hide");self.refreshValue()});self.$container.on("click",self.options.btAdd,function(e){e.preventDefault();var after=$(this).parents(self.options.repeatableElement);if(!after.length){after=null}self.addRow(after)});self.$container.on("click",self.options.btRemove,function(e){e.preventDefault();var row=$(this).parents(self.options.repeatableElement);self.removeRow(row)});self.$input.trigger("weready")};self.prepareTemplate=function(){var $rows=self.$container.find(self.options.repeatableElement);var $row=$($rows.get(0));try{self.clearScripts($row)}catch(e){if(window.console){console.log(e)}}var inputs=$row.find("*[name]");for(var i=0,l=inputs.length;i=docHalfWidth?0:-modalHalfWidth,left=marginLeft?"50%":0,top=$(document).scrollTop()+$(window).height()*.2;self.$modalWindow.css({top:top,left:left,"margin-left":marginLeft,overflow:rowsHalfWidth>modalHalfWidth?"auto":"visible"})};self.buildRows=function(){var $oldRows=self.$rowsContainer.children();if($oldRows.length){self.removeRow($oldRows)}var count=self.values[Object.keys(self.values)[0]].length||1,row=null;for(var i=0;i=self.options.maximum){return null}var row=$.parseHTML(self.template);if(after){$(after).after(row)}else{self.$rowsContainer.append(row)}var $row=$(row);self.fixUniqueAttributes($row,count+1);if(valueKey!==null&&valueKey!==undefined){for(var i=0,l=self.inputs.length;i1){val=[];for(var c=0,cl=checked.length;c=docHalfWidth?0:-modalHalfWidth,left=marginLeft?"50%":0,top=$(document).scrollTop()+$(window).height()*.2;self.$modalWindow.css({top:top,left:left,"margin-left":marginLeft,overflow:rowsHalfWidth>modalHalfWidth?"auto":"visible"})};self.buildRows=function(){var $oldRows=self.$rowsContainer.children();if($oldRows.length){self.removeRow($oldRows)}var count=self.values[Object.keys(self.values)[0]].length||1,row=null;for(var i=0;i=self.options.maximum){return null}var row=$.parseHTML(self.template);if(after){$(after).after(row)}else{self.$rowsContainer.append(row)}var $row=$(row);self.fixUniqueAttributes($row,count+1);if(valueKey!==null&&valueKey!==undefined){for(var i=0,l=self.inputs.length;i1){val=[];for(var c=0,cl=checked.length;c Date: Wed, 26 Jul 2017 05:14:16 +0530 Subject: [PATCH 059/148] Fixed typehint (#16425) Fixed the typehint for quote functions in `JDatabaseDriver` --- libraries/joomla/database/driver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/joomla/database/driver.php b/libraries/joomla/database/driver.php index fc9080e72c9f8..c84e7a8e3990f 100644 --- a/libraries/joomla/database/driver.php +++ b/libraries/joomla/database/driver.php @@ -14,8 +14,8 @@ * * @since 12.1 * - * @method string q() q($text, $escape = true) Alias for quote method - * @method string qn() qn($name, $as = null) Alias for quoteName method + * @method string|array q() q($text, $escape = true) Alias for quote method + * @method string|array qn() qn($name, $as = null) Alias for quoteName method */ abstract class JDatabaseDriver extends JDatabase implements JDatabaseInterface { From 1e047dae12c5421c5cff03551ae386eaee44c40e Mon Sep 17 00:00:00 2001 From: Frank Mayer Date: Wed, 26 Jul 2017 02:46:57 +0300 Subject: [PATCH 060/148] Performance 6 (templates) (#12233) * Type-safe string comparisons * More type-safe comparisons * Replace is_null with === * Use Elvis instead of complete ternary * Merge nested if * Replace single quotes with double quotes * Remove unnecessary parentheses * Optimize non-optimal if conditions. * Reverted some condition flips as requested in changes of other PR (https://github.com/joomla/joomla-cms/pull/12225) * Reverted some more condition flips as requested in changes of other PR (https://github.com/joomla/joomla-cms/pull/12225) * Reverted even more condition flips as requested in changes of other PR (https://github.com/joomla/joomla-cms/pull/12225) * Reverted one more condition flips as requested in changes of other PR (https://github.com/joomla/joomla-cms/pull/12225) * Replaced and, or with &&, || * Comply to change request in PR discussion: Leave 'or' and 'and' alone * Missed a spot... * This way, this JS is much easier to read... * Another HEREDOC * Changes that were pointed out in PR discussion * Hopefully this fixes CS... * Formatting... ARGH! * Reverted HEREDOC modifications. (maybe in some other PR?) * Reverted a prior change, which was on hold, as no decision was made up to now, on if we could use HEREDOC to construct JS and CSS instead. * Minor change * Template code-style fix * Replace unneeded strlen() call with cheaper is-not-empty-string check * Changes: - Replaced AND's and OR's with && and || - Modified alias function to use correct function - Optimization: Extracted variable from multiple calls to do only one call - Rearranged some conditions in if statements, which cost less than the ones on their left. Logic is still the same. * Reversed AND OR to && || as per discussion in early comments of this PR.. * Corrections according to reviewer's comment * Corrections according to reviewer's comment * Corrections according to reviewer's comment * Some more changes + changes according to reviewer's comments * Changes according to reviewer's comments * Changes according to reviewer's comments * Changes according to reviewer's comment * Changes according to reviewer's comment --- .../html/layouts/joomla/sidebars/submenu.php | 2 +- administrator/templates/isis/error.php | 2 +- .../com_contact/categories/default_items.php | 4 +- .../html/com_contact/category/default.php | 4 +- .../com_contact/category/default_children.php | 4 +- .../html/com_contact/contact/default.php | 10 ++--- .../com_contact/contact/default_address.php | 4 +- .../contact/default_user_custom_fields.php | 2 +- .../com_content/archive/default_items.php | 9 ++-- .../html/com_content/article/default.php | 44 +++++++++++-------- .../com_content/categories/default_items.php | 4 +- .../beez3/html/com_content/category/blog.php | 17 +++---- .../com_content/category/blog_children.php | 4 +- .../html/com_content/category/blog_item.php | 11 +++-- .../html/com_content/category/default.php | 33 +++++++------- .../com_content/category/default_articles.php | 5 +-- .../com_content/category/default_children.php | 2 +- .../html/com_content/featured/default.php | 2 +- .../com_content/featured/default_item.php | 29 ++++++------ .../beez3/html/com_content/form/edit.php | 6 +-- .../categories/default_items.php | 4 +- .../html/com_newsfeeds/category/default.php | 4 +- .../category/default_children.php | 4 +- .../com_weblinks/categories/default_items.php | 4 +- .../html/com_weblinks/category/default.php | 4 +- .../category/default_children.php | 4 +- .../beez3/html/com_weblinks/form/edit.php | 2 +- .../beez3/html/mod_breadcrumbs/default.php | 6 +-- .../beez3/html/mod_languages/default.php | 2 +- templates/beez3/html/modules.php | 6 +-- templates/beez3/javascript/template.js | 2 +- templates/protostar/error.php | 2 +- templates/protostar/html/pagination.php | 27 ++++++------ templates/protostar/index.php | 13 +++--- templates/protostar/js/classes.js | 14 +++--- templates/protostar/offline.php | 2 +- templates/system/html/modules.php | 2 +- 37 files changed, 154 insertions(+), 146 deletions(-) diff --git a/administrator/templates/hathor/html/layouts/joomla/sidebars/submenu.php b/administrator/templates/hathor/html/layouts/joomla/sidebars/submenu.php index cf3ab4d0e2db8..619eb61e46f8e 100644 --- a/administrator/templates/hathor/html/layouts/joomla/sidebars/submenu.php +++ b/administrator/templates/hathor/html/layouts/joomla/sidebars/submenu.php @@ -23,7 +23,7 @@ if ($displayData->hide) : ?> + if ($item[1] !== '') : ?> diff --git a/administrator/templates/isis/error.php b/administrator/templates/isis/error.php index c1a3af617cded..35617f64df70c 100644 --- a/administrator/templates/isis/error.php +++ b/administrator/templates/isis/error.php @@ -41,7 +41,7 @@ foreach ($this->submenumodules as $submenumodule) { $output = JModuleHelper::renderModule($submenumodule); - if (strlen($output)) + if ($output !== '') { $showSubmenu = true; break; diff --git a/templates/beez3/html/com_contact/categories/default_items.php b/templates/beez3/html/com_contact/categories/default_items.php index ef1379a0cd499..273f9ff06a3e8 100644 --- a/templates/beez3/html/com_contact/categories/default_items.php +++ b/templates/beez3/html/com_contact/categories/default_items.php @@ -9,12 +9,12 @@ defined('_JEXEC') or die; $class = ' class="first"'; -if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : +if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) : ?>
        items[$this->parent->id] as $id => $item) : ?> params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : + if ($item->numitems || $this->params->get('show_empty_categories_cat') || count($item->getChildren())) : if (!isset($this->items[$this->parent->id][$id + 1])) { $class = ' class="last"'; diff --git a/templates/beez3/html/com_contact/category/default.php b/templates/beez3/html/com_contact/category/default.php index 5a8006b1b2f5f..dd5bdac9fec27 100644 --- a/templates/beez3/html/com_contact/category/default.php +++ b/templates/beez3/html/com_contact/category/default.php @@ -26,7 +26,7 @@ params->get('show_description_image') && $this->category->getParams()->get('image')) : ?> - params->get('show_description') && $this->category->description) : ?> + category->description && $this->params->get('show_description')) : ?> category->description, '', 'com_contact.category.description'); ?>
        @@ -35,7 +35,7 @@ loadTemplate('items'); ?> -children[$this->category->id]) && $this->maxLevel != 0) : ?> +maxLevel != 0 && !empty($this->children[$this->category->id])) : ?>

        loadTemplate('children'); ?> diff --git a/templates/beez3/html/com_contact/category/default_children.php b/templates/beez3/html/com_contact/category/default_children.php index 26b10b65e8f67..04c882c5016d9 100644 --- a/templates/beez3/html/com_contact/category/default_children.php +++ b/templates/beez3/html/com_contact/category/default_children.php @@ -9,12 +9,12 @@ defined('_JEXEC') or die; $class = ' class="first"'; -if (count($this->children[$this->category->id]) > 0 && $this->maxLevel != 0) : +if ($this->maxLevel != 0 && count($this->children[$this->category->id]) > 0) : ?>
          children[$this->category->id] as $id => $child) : ?> params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) : + if ($child->numitems || $this->params->get('show_empty_categories') || count($child->getChildren())) : if (!isset($this->children[$this->category->id][$id + 1])) { $class = ' class="last"'; diff --git a/templates/beez3/html/com_contact/contact/default.php b/templates/beez3/html/com_contact/contact/default.php index 8e91433df3a74..464f54469639c 100644 --- a/templates/beez3/html/com_contact/contact/default.php +++ b/templates/beez3/html/com_contact/contact/default.php @@ -48,7 +48,7 @@ - params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> + item->tags->itemTags) && $this->params->get('show_tags', 1)) : ?> item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> item->tagLayout->render($this->item->tags->itemTags); ?> @@ -90,7 +90,7 @@ - params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?> + contact->email_to || $this->contact->user_id) && $this->params->get('show_email_form')) : ?> params->get('presentation_style') === 'sliders') : ?> @@ -109,7 +109,7 @@ loadTemplate('links'); ?> - params->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?> + contact->user_id && $this->contact->articles && $this->params->get('show_articles')) : ?> params->get('presentation_style') === 'sliders') : echo JHtml::_('sliders.panel', JText::_('JGLOBAL_ARTICLES'), 'display-articles'); ?> @@ -125,7 +125,7 @@ - params->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?> + contact->user_id && $this->params->get('show_profile') && JPluginHelper::isEnabled('user', 'profile')) : ?> params->get('presentation_style') === 'sliders') : echo JHtml::_('sliders.panel', JText::_('COM_CONTACT_PROFILE'), 'display-profile'); ?> @@ -141,7 +141,7 @@ - params->get('show_user_custom_fields') && $this->contactUser) : ?> + contactUser && $this->params->get('show_user_custom_fields')) : ?> loadTemplate('user_custom_fields'); ?> diff --git a/templates/beez3/html/com_contact/contact/default_address.php b/templates/beez3/html/com_contact/contact/default_address.php index 5a4eb2287a75c..7cf43094c41c9 100644 --- a/templates/beez3/html/com_contact/contact/default_address.php +++ b/templates/beez3/html/com_contact/contact/default_address.php @@ -14,8 +14,8 @@ */ ?>
          -params->get('address_check') > 0) && ($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : ?> - params->get('address_check') > 0) : ?> +contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode) && ($addressCheck = $this->params->get('address_check') > 0)) : ?> +
          params->get('marker_address'); ?> diff --git a/templates/beez3/html/com_contact/contact/default_user_custom_fields.php b/templates/beez3/html/com_contact/contact/default_user_custom_fields.php index 32027c2984dde..2f3dd034c4d62 100644 --- a/templates/beez3/html/com_contact/contact/default_user_custom_fields.php +++ b/templates/beez3/html/com_contact/contact/default_user_custom_fields.php @@ -23,7 +23,7 @@ group_id || !in_array($field->group_id, $displayGroups))) : ?> - group_title, $userFieldGroups)) : ?> + group_title, $userFieldGroups)) : ?> group_title] = array();?> group_title][] = $field;?> diff --git a/templates/beez3/html/com_content/archive/default_items.php b/templates/beez3/html/com_content/archive/default_items.php index aba033ef5a369..01dff1b8cc00e 100644 --- a/templates/beez3/html/com_content/archive/default_items.php +++ b/templates/beez3/html/com_content/archive/default_items.php @@ -42,7 +42,7 @@
          escape($item->parent_title); $url = ''.$title.'';?> - get('link_parent_category') && $item->parent_slug) : ?> + parent_slug && $params->get('link_parent_category')) : ?> @@ -54,7 +54,7 @@
          escape($item->category_title); $url = '' . $title . ''; ?> - get('link_category') && $item->catslug) : ?> + catslug && $params->get('link_category')) : ?> @@ -76,10 +76,9 @@ publish_up, JText::_('DATE_FORMAT_LC2'))); ?>
          -get('show_author') && !empty($item->author )) : ?> +author) && $params->get('show_author')) : ?>
          - author; ?> - created_by_alias ?: $author);?> + created_by_alias ?: $item->author; ?> contact_link ) && $params->get('link_author') == true):?> contact_link, $author)); ?> diff --git a/templates/beez3/html/com_content/article/default.php b/templates/beez3/html/com_content/article/default.php index db97bc0885a92..2e2d6e22ae016 100644 --- a/templates/beez3/html/com_content/article/default.php +++ b/templates/beez3/html/com_content/article/default.php @@ -9,22 +9,27 @@ defined('_JEXEC') or die; -$app = JFactory::getApplication(); +$app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; -$images = json_decode($this->item->images); -$urls = json_decode($this->item->urls); -$user = JFactory::getUser(); +$images = json_decode($this->item->images); +$urls = json_decode($this->item->urls); +$user = JFactory::getUser(); + JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); JHtml::_('behavior.caption'); // Create shortcut to parameters. $params = $this->item->params; +$accessEdit = $params->get('access-edit'); +$showPrintIcon = $params->get('show_print_icon'); +$showEmailIcon = $params->get('show_email_icon'); + ?>
          -params->get('show_page_heading')) : ?> +params->get('show_page_heading')) : ?> -params->get('show_page_heading') and $params->get('show_title')) :?> +get('show_title')) :?>

          @@ -42,23 +47,25 @@ escape($this->item->title); ?>

          -params->get('show_page_heading') and $params->get('show_title')) :?> +get('show_title')) :?>
          item->event->afterDisplayTitle; ?>
          -get('access-edit') || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?> +
            print) : ?> - get('show_print_icon')) : ?> + - get('show_email_icon')) : ?> + @@ -86,7 +93,7 @@
        -intro_items); - $counter = 0; -?> intro_items)) : ?> - + intro_items); ?> + intro_items as $key => &$item) : ?> columns) + 1; ?> - + columns; ?>
        @@ -84,7 +81,7 @@ ?> - columns) or ($counter == $introcount)) : ?> + columns or $counter === $introcount) : ?>
        @@ -96,7 +93,7 @@ loadTemplate('links'); ?> -children[$this->category->id]) && count($this->children[$this->category->id]) > 0 && $this->params->get('maxLevel') != 0) : ?> +params->get('maxLevel') != 0 && is_array($this->children[$this->category->id]) && count($this->children[$this->category->id]) > 0) : ?>
        params->get('show_category_heading_title_text', 1) == 1) : ?> @@ -108,7 +105,7 @@
        -params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?> +pagination->pagesTotal > 1 && ($this->params->def('show_pagination', 1) == 1 || $this->params->get('show_pagination') == 2)) : ?>