I hereby claim:
- I am brandonkelly on github.
- I am brandonkelly (https://keybase.io/brandonkelly) on keybase.
- I have a public key ASBSTBHBxc0E6qGHlzL0iNPFzO-j9rWbFHyjoGuYIxhbygo
To claim this, I am signing this object:
#!/usr/bin/env php | |
<?php | |
// ----------------------------------------------------------------------------- | |
// Usage: `cherrypath.php <upstream> <head> <path>` | |
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
// Runs `git cherry -v <upstream> <head>` and filters the output | |
// to only include SHAs where <path> was modified. | |
// ----------------------------------------------------------------------------- |
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace foo\bar; | |
use yii\log\Target; | |
/** | |
* Define a LogTarget class that only collects the log messages, but never flushes them out anywhere | |
*/ | |
class LogTarget extends Target | |
{ |
<?php | |
// -- modules/Module.php -- | |
namespace modules; | |
use Craft; | |
use craft\base\Element; | |
use craft\elements\Entry; | |
use craft\events\RegisterPreviewTargetsEvent; |
<?php | |
namespace Craft; | |
class CompatibilityPlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Browser Compatibility'); | |
} |
<?php | |
namespace Craft; | |
class CompatibilityPlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Browser Compatibility'); | |
} |
<?php | |
// ... | |
public function getFieldByHandle($handle) | |
{ | |
return craft()->fields->getFieldByHandle($handle); | |
} |
diff --git Source/craft/app/variables/HttpRequestVariable.php Source/craft/app/variables/HttpRequestVariable.php | |
index fad31b7edab84f5c428e3ce2c3b3ec6e8d92e7ef..430e1adcdf801cccabaf67c89001465c8835fba7 100644 | |
--- Source/craft/app/variables/HttpRequestVariable.php | |
+++ Source/craft/app/variables/HttpRequestVariable.php | |
@@ -201,4 +201,14 @@ class HttpRequestVariable | |
{ | |
return craft()->request->isMobileBrowser($detectTablets); | |
} | |
+ | |
+ /** |