Skip to content

Don't declare class if they already exist#219

Closed
bfintal wants to merge 1 commit intoleafo:masterfrom
bfintal:master
Closed

Don't declare class if they already exist#219
bfintal wants to merge 1 commit intoleafo:masterfrom
bfintal:master

Conversation

@bfintal
Copy link

@bfintal bfintal commented Dec 2, 2014

This is to prevent PHP errors when scssphp is used multiple times.

Use case: I'm using scssphp in a WordPress plugin and if another plugin also uses scssphp, this results in errors

@varunsridharan
Copy link

i too used this is in WP Plugin.. i was search for it..
+1 👍

@robocoder
Copy link
Collaborator

Understood but the PR doesn't work as intended, for example:

<?php
include_once 'path1/scssphp/scss.inc.php';
include_once 'path2/scssphp/scss.inc.php';

I'll fix this in the develop branch.

@robocoder robocoder closed this Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants