for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by IntelliJ IDEA.
* User: Werner
* Date: 14.11.2016
* Time: 14:42
*/
class OnePageHolderExtension extends Extension
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function MetaTags(& $tags)
$request = Controller::curr()->getRequest();
if ($currentEditPageID = $request->getVar('EditPageID')) {
$origIDTag = "<meta name=\"x-page-id\" content=\"{$this->owner->ID}\" />\n";
$origEditLinkTag = "<meta name=\"x-cms-edit-link\" content=\"" . $this->owner->CMSEditLink() . "\" />\n";
$modifiedCMSEditLink = str_replace($this->owner->ID, $currentEditPageID, $this->owner->CMSEditLink());
$newIDTag = "<meta name=\"x-page-id\" content=\"{$currentEditPageID}\" />\n";
$newEditLinkTag = "<meta name=\"x-cms-edit-link\" content=\"" . $modifiedCMSEditLink . "\" />\n";
$tags = str_replace($origIDTag, $newIDTag, $tags);
$tags = str_replace($origEditLinkTag, $newEditLinkTag, $tags);
}
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.