This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ezpublish_legacy/lib/ezc/Mail/src/interfaces/part.php b/ezpublish_legacy/lib/ezc/Mail/src/interfaces/part.php | |
index 6adcabf..8bdceb6 100644 | |
--- a/src/interfaces/part.php | |
+++ b/src/interfaces/part.php | |
@@ -387,18 +387,9 @@ public function generateHeaders() | |
// break intentionally missing | |
default: | |
- $preferences = array( | |
- 'input-charset' => $charset, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
require 'ezc/Base/base.php'; | |
spl_autoload_register( 'ezcBase::autoload' ); | |
$db = ezcDbFactory::create( 'mysql://user:password@server/databse_name' ); | |
// Get all tables | |
$tables = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \eZ\Publish\API\Repository\Values\Content\Query; | |
$locationService = $this->getRepository()->getLocationService(); | |
$searchService = $this->getRepository()->getSearchService(); | |
$urlAliasService = $this->getRepository()->getUrlAliasService(); | |
$root = $locationService->loadLocation( 2 ); | |
$query = new Query(); | |
$query->criterion = new Criterion\LogicalAND( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get ServiceContainer (exposes the API) | |
* @var \eZ\Publish\API\Container $serviceContainer | |
*/ | |
$serviceContainer = require "bootstrap.php"; | |
$repository = $serviceContainer->getRepository(); | |
$administratorUser = $repository->getUserService()->loadUser( 14 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>The proposed (but human unreadable) WHATWG syntax:<p> | |
<pre> | |
<img src="face-600-200@1.jpg" alt="" | |
set="face-600-200@1.jpg 600w 200h 1x, | |
face-600-200@2.jpg 600w 200h 2x, | |
face-icon.png 200w 200h"> | |
</pre> | |
<p>The propposed RICG syntax (that WHATWG rejects):</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kernel/setup/ezsetupcommon.php b/kernel/setup/ezsetupcommon.php | |
index 9ef9cb7..bd137c8 100644 | |
--- a/kernel/setup/ezsetupcommon.php | |
+++ b/kernel/setup/ezsetupcommon.php | |
@@ -51,9 +51,15 @@ function eZSetupOptionalTests() | |
function eZSetupDatabaseMap() | |
{ | |
- return array( 'mysql' => array( 'type' => 'mysql', | |
+ return array( 'mysqli' => array( 'type' => 'mysqli', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* File contains misc ways to archive Singleton pattern depending on PHP version | |
* | |
* Note that the Singleton pattern is hard to test: {@link http://www.phparch.com/2010/03/03/static-methods-vs-singletons-choose-neither/} | |
*/ | |
/** | |
* Singleton in any PHP 5.x version using code duplication | |
*/ |
NewerOlder